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

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

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

  
12
  columns => [
13
    id           => { type => 'serial', not_null => 1 },
14
    type         => { type => 'varchar', length => 255 },
15
    package_name => { type => 'varchar', length => 255 },
16
    last_run_at  => { type => 'timestamp' },
17
    next_run_at  => { type => 'timestamp' },
18
    data         => { type => 'text' },
19
    active       => { type => 'boolean' },
20
    cron_spec    => { type => 'varchar', length => 255 },
21
  ],
22

  
23
  primary_key_columns => [ 'id' ],
11
__PACKAGE__->meta->columns(
12
  id           => { type => 'serial', not_null => 1 },
13
  type         => { type => 'varchar', length => 255 },
14
  package_name => { type => 'varchar', length => 255 },
15
  last_run_at  => { type => 'timestamp' },
16
  next_run_at  => { type => 'timestamp' },
17
  data         => { type => 'text' },
18
  active       => { type => 'boolean' },
19
  cron_spec    => { type => 'varchar', length => 255 },
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