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/AccTransaction.pm
10 10

  
11 11
__PACKAGE__->meta->columns(
12 12
  acc_trans_id   => { type => 'bigint', not_null => 1, sequence => 'acc_trans_id_seq' },
13
  trans_id       => { type => 'integer', not_null => 1 },
14
  chart_id       => { type => 'integer', not_null => 1 },
15 13
  amount         => { type => 'numeric', precision => 5, scale => 15 },
16
  transdate      => { type => 'date', default => 'now' },
17
  gldate         => { type => 'date', default => 'now' },
18
  source         => { type => 'text' },
14
  cb_transaction => { type => 'boolean', default => 'false', not_null => 1 },
15
  chart_id       => { type => 'integer', not_null => 1 },
16
  chart_link     => { type => 'text', not_null => 1 },
19 17
  cleared        => { type => 'boolean', default => 'false', not_null => 1 },
20 18
  fx_transaction => { type => 'boolean', default => 'false', not_null => 1 },
21
  ob_transaction => { type => 'boolean', default => 'false', not_null => 1 },
22
  cb_transaction => { type => 'boolean', default => 'false', not_null => 1 },
23
  project_id     => { type => 'integer' },
24
  memo           => { type => 'text' },
25
  taxkey         => { type => 'integer' },
19
  gldate         => { type => 'date', default => 'now' },
26 20
  itime          => { type => 'timestamp', default => 'now()' },
21
  memo           => { type => 'text' },
27 22
  mtime          => { type => 'timestamp' },
23
  ob_transaction => { type => 'boolean', default => 'false', not_null => 1 },
24
  project_id     => { type => 'integer' },
25
  source         => { type => 'text' },
28 26
  tax_id         => { type => 'integer', not_null => 1 },
29
  chart_link     => { type => 'text', not_null => 1 },
27
  taxkey         => { type => 'integer' },
28
  trans_id       => { type => 'integer', not_null => 1 },
29
  transdate      => { type => 'date', default => 'now' },
30 30
);
31 31

  
32 32
__PACKAGE__->meta->primary_key_columns([ 'acc_trans_id' ]);
......
50 50
  },
51 51
);
52 52

  
53
# __PACKAGE__->meta->initialize;
54

  
55 53
1;
56 54
;

Auch abrufbar als: Unified diff