Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision b8b112a3

Von Sven Schöling vor mehr als 11 Jahren hinzugefügt

  • ID b8b112a39bd601b0bc717646d78de470631da22a
  • Vorgänger c0931303
  • Nachfolger 2d7e4203

MetaSetup neu generiert

Unterschiede anzeigen:

SL/DB/MetaSetup/CustomVariableConfig.pm
6 6

  
7 7
use base qw(SL::DB::Object);
8 8

  
9
__PACKAGE__->meta->setup(
10
  table   => 'custom_variable_configs',
11

  
12
  columns => [
13
    id                  => { type => 'integer', not_null => 1, sequence => 'custom_variable_configs_id' },
14
    name                => { type => 'text', not_null => 1 },
15
    description         => { type => 'text', not_null => 1 },
16
    type                => { type => 'text', not_null => 1 },
17
    module              => { type => 'text', not_null => 1 },
18
    default_value       => { type => 'text' },
19
    options             => { type => 'text' },
20
    searchable          => { type => 'boolean', not_null => 1 },
21
    includeable         => { type => 'boolean', not_null => 1 },
22
    included_by_default => { type => 'boolean', not_null => 1 },
23
    sortkey             => { type => 'integer', not_null => 1 },
24
    itime               => { type => 'timestamp', default => 'now()' },
25
    mtime               => { type => 'timestamp' },
26
    flags               => { type => 'text' },
27
  ],
28

  
29
  primary_key_columns => [ 'id' ],
30

  
31
  allow_inline_column_values => 1,
9
__PACKAGE__->meta->table('custom_variable_configs');
10

  
11
__PACKAGE__->meta->columns(
12
  id                  => { type => 'integer', not_null => 1, sequence => 'custom_variable_configs_id' },
13
  name                => { type => 'text', not_null => 1 },
14
  description         => { type => 'text', not_null => 1 },
15
  type                => { type => 'text', not_null => 1 },
16
  module              => { type => 'text', not_null => 1 },
17
  default_value       => { type => 'text' },
18
  options             => { type => 'text' },
19
  searchable          => { type => 'boolean', not_null => 1 },
20
  includeable         => { type => 'boolean', not_null => 1 },
21
  included_by_default => { type => 'boolean', not_null => 1 },
22
  sortkey             => { type => 'integer', not_null => 1 },
23
  itime               => { type => 'timestamp', default => 'now()' },
24
  mtime               => { type => 'timestamp' },
25
  flags               => { type => 'text' },
32 26
);
33 27

  
28
__PACKAGE__->meta->primary_key_columns([ 'id' ]);
29

  
30
__PACKAGE__->meta->allow_inline_column_values(1);
31

  
32
# __PACKAGE__->meta->initialize;
33

  
34 34
1;
35 35
;

Auch abrufbar als: Unified diff