Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 1561b7f3

Von Moritz Bunkus vor mehr als 10 Jahren hinzugefügt

  • ID 1561b7f3d98390ba97bd5a81945f16e82d96915b
  • Vorgänger 55e399ab
  • Nachfolger 0ce8f2d4

Rose-Setup Pflichtenhefte/Projekte an Umstellung setup()/initialize() angepasst

Unterschiede anzeigen:

SL/DB/MetaSetup/RequirementSpecComplexity.pm
6 6

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

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

  
12
  columns => [
13
    id          => { type => 'serial', not_null => 1 },
14
    description => { type => 'text', not_null => 1 },
15
    position    => { type => 'integer', not_null => 1 },
16
    itime       => { type => 'timestamp', default => 'now()' },
17
    mtime       => { type => 'timestamp' },
18
  ],
9
__PACKAGE__->meta->table('requirement_spec_complexities');
10

  
11
__PACKAGE__->meta->columns(
12
  description => { type => 'text', not_null => 1 },
13
  id          => { type => 'serial', not_null => 1 },
14
  itime       => { type => 'timestamp', default => 'now()' },
15
  mtime       => { type => 'timestamp' },
16
  position    => { type => 'integer', not_null => 1 },
17
);
19 18

  
20
  primary_key_columns => [ 'id' ],
19
__PACKAGE__->meta->primary_key_columns([ 'id' ]);
21 20

  
22
  unique_key => [ 'description' ],
21
__PACKAGE__->meta->unique_keys([ 'description' ]);
23 22

  
24
  allow_inline_column_values => 1,
25
);
23
__PACKAGE__->meta->allow_inline_column_values(1);
26 24

  
27 25
1;
28 26
;

Auch abrufbar als: Unified diff