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/RequirementSpecAcceptanceStatus.pm
6 6

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

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

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

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

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

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

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

  
28 26
1;
29 27
;

Auch abrufbar als: Unified diff