Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 3eb3d1b1

Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt

  • ID 3eb3d1b144adb92e62de08e67dc6ff3d39bf7483
  • Vorgänger e7ae5b6a
  • Nachfolger 0b5b8355

MetaSetup: Spalten- und Fremdschlüsselnamen alphabetisch sortieren

Unterschiede anzeigen:

SL/DB/MetaSetup/Contact.pm
9 9
__PACKAGE__->meta->table('contacts');
10 10

  
11 11
__PACKAGE__->meta->columns(
12
  cp_id          => { type => 'integer', not_null => 1, sequence => 'id' },
12
  cp_abteilung   => { type => 'text' },
13
  cp_birthday    => { type => 'date' },
14
  cp_city        => { type => 'text' },
13 15
  cp_cv_id       => { type => 'integer' },
14
  cp_title       => { type => 'varchar', length => 75 },
15
  cp_givenname   => { type => 'varchar', length => 75 },
16
  cp_name        => { type => 'varchar', length => 75 },
17 16
  cp_email       => { type => 'text' },
18
  cp_phone1      => { type => 'varchar', length => 75 },
19
  cp_phone2      => { type => 'varchar', length => 75 },
20
  itime          => { type => 'timestamp', default => 'now()' },
21
  mtime          => { type => 'timestamp' },
22 17
  cp_fax         => { type => 'text' },
18
  cp_gender      => { type => 'character', length => 1 },
19
  cp_givenname   => { type => 'varchar', length => 75 },
20
  cp_id          => { type => 'integer', not_null => 1, sequence => 'id' },
23 21
  cp_mobile1     => { type => 'text' },
24 22
  cp_mobile2     => { type => 'text' },
25
  cp_satphone    => { type => 'text' },
26
  cp_satfax      => { type => 'text' },
27
  cp_project     => { type => 'text' },
28
  cp_privatphone => { type => 'text' },
23
  cp_name        => { type => 'varchar', length => 75 },
24
  cp_phone1      => { type => 'varchar', length => 75 },
25
  cp_phone2      => { type => 'varchar', length => 75 },
26
  cp_position    => { type => 'varchar', length => 75 },
29 27
  cp_privatemail => { type => 'text' },
30
  cp_abteilung   => { type => 'text' },
31
  cp_gender      => { type => 'character', length => 1 },
28
  cp_privatphone => { type => 'text' },
29
  cp_project     => { type => 'text' },
30
  cp_satfax      => { type => 'text' },
31
  cp_satphone    => { type => 'text' },
32 32
  cp_street      => { type => 'text' },
33
  cp_title       => { type => 'varchar', length => 75 },
33 34
  cp_zipcode     => { type => 'text' },
34
  cp_city        => { type => 'text' },
35
  cp_birthday    => { type => 'date' },
36
  cp_position    => { type => 'varchar', length => 75 },
35
  itime          => { type => 'timestamp', default => 'now()' },
36
  mtime          => { type => 'timestamp' },
37 37
);
38 38

  
39 39
__PACKAGE__->meta->primary_key_columns([ 'cp_id' ]);
40 40

  
41 41
__PACKAGE__->meta->allow_inline_column_values(1);
42 42

  
43
# __PACKAGE__->meta->initialize;
44

  
45 43
1;
46 44
;

Auch abrufbar als: Unified diff