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

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

  
9
__PACKAGE__->meta->setup(
10
  table   => 'audittrail',
9
__PACKAGE__->meta->table('audittrail');
11 10

  
12
  columns => [
13
    trans_id    => { type => 'integer' },
14
    tablename   => { type => 'text' },
15
    reference   => { type => 'text' },
16
    formname    => { type => 'text' },
17
    action      => { type => 'text' },
18
    transdate   => { type => 'timestamp', default => 'now' },
19
    employee_id => { type => 'integer' },
20
    id          => { type => 'serial', not_null => 1 },
21
  ],
22

  
23
  primary_key_columns => [ 'id' ],
11
__PACKAGE__->meta->columns(
12
  trans_id    => { type => 'integer' },
13
  tablename   => { type => 'text' },
14
  reference   => { type => 'text' },
15
  formname    => { type => 'text' },
16
  action      => { type => 'text' },
17
  transdate   => { type => 'timestamp', default => 'now' },
18
  employee_id => { type => 'integer' },
19
  id          => { type => 'serial', not_null => 1 },
24 20
);
25 21

  
22
__PACKAGE__->meta->primary_key_columns([ 'id' ]);
23

  
24
# __PACKAGE__->meta->initialize;
25

  
26 26
1;
27 27
;

Auch abrufbar als: Unified diff