Revision 295e585a
Von Moritz Bunkus vor fast 14 Jahren hinzugefügt
SL/DB/BackgroundJob.pm | ||
---|---|---|
1 |
# This file has been auto-generated only because it didn't exist. |
|
2 |
# Feel free to modify it at will; it will not be overwritten automatically. |
|
3 |
|
|
4 |
package SL::DB::BackgroundJob; |
|
5 |
|
|
6 |
use strict; |
|
7 |
|
|
8 |
use SL::DB::MetaSetup::BackgroundJob; |
|
9 |
|
|
10 |
# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. |
|
11 |
__PACKAGE__->meta->make_manager_class; |
|
12 |
|
|
13 |
1; |
SL/DB/BackgroundJobHistory.pm | ||
---|---|---|
1 |
# This file has been auto-generated only because it didn't exist. |
|
2 |
# Feel free to modify it at will; it will not be overwritten automatically. |
|
3 |
|
|
4 |
package SL::DB::BackgroundJobHistory; |
|
5 |
|
|
6 |
use strict; |
|
7 |
|
|
8 |
use SL::DB::MetaSetup::BackgroundJobHistory; |
|
9 |
|
|
10 |
# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. |
|
11 |
__PACKAGE__->meta->make_manager_class; |
|
12 |
|
|
13 |
1; |
SL/DB/Helper/ALL.pm | ||
---|---|---|
6 | 6 |
use SL::DB::AccTransaction; |
7 | 7 |
use SL::DB::Assembly; |
8 | 8 |
use SL::DB::AuditTrail; |
9 |
use SL::DB::BackgroundJob; |
|
10 |
use SL::DB::BackgroundJobHistory; |
|
9 | 11 |
use SL::DB::BankAccount; |
10 | 12 |
use SL::DB::Bin; |
11 | 13 |
use SL::DB::Buchungsgruppe; |
SL/DB/Helper/Mappings.pm | ||
---|---|---|
24 | 24 |
audittrail => 'audit_trail', |
25 | 25 |
ar => 'invoice', |
26 | 26 |
ap => 'purchase_invoice', |
27 |
background_jobs => 'background_job', |
|
28 |
background_job_histories => 'background_job_history', |
|
29 |
ap => 'purchase_invoice', |
|
27 | 30 |
bank_accounts => 'bank_account', |
28 | 31 |
buchungsgruppen => 'buchungsgruppe', |
29 | 32 |
contacts => 'contact', |
SL/DB/MetaSetup/BackgroundJob.pm | ||
---|---|---|
1 |
# This file has been auto-generated. Do not modify it; it will be overwritten |
|
2 |
# by rose_auto_create_model.pl automatically. |
|
3 |
package SL::DB::BackgroundJob; |
|
4 |
|
|
5 |
use strict; |
|
6 |
|
|
7 |
use base qw(SL::DB::Object); |
|
8 |
|
|
9 |
__PACKAGE__->meta->setup( |
|
10 |
table => 'background_jobs', |
|
11 |
|
|
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' ], |
|
24 |
); |
|
25 |
|
|
26 |
1; |
|
27 |
; |
SL/DB/MetaSetup/BackgroundJobHistory.pm | ||
---|---|---|
1 |
# This file has been auto-generated. Do not modify it; it will be overwritten |
|
2 |
# by rose_auto_create_model.pl automatically. |
|
3 |
package SL::DB::BackgroundJobHistory; |
|
4 |
|
|
5 |
use strict; |
|
6 |
|
|
7 |
use base qw(SL::DB::Object); |
|
8 |
|
|
9 |
__PACKAGE__->meta->setup( |
|
10 |
table => 'background_job_histories', |
|
11 |
|
|
12 |
columns => [ |
|
13 |
id => { type => 'serial', not_null => 1 }, |
|
14 |
package_name => { type => 'varchar', length => 255 }, |
|
15 |
run_at => { type => 'timestamp' }, |
|
16 |
status => { type => 'varchar', length => 255 }, |
|
17 |
result => { type => 'text' }, |
|
18 |
error => { type => 'text', alias => 'error_col' }, |
|
19 |
data => { type => 'text' }, |
|
20 |
], |
|
21 |
|
|
22 |
primary_key_columns => [ 'id' ], |
|
23 |
); |
|
24 |
|
|
25 |
1; |
|
26 |
; |
sql/Pg-upgrade2/emmvee_background_jobs.sql | ||
---|---|---|
1 |
-- @tag: emmvee_background_jobs |
|
2 |
-- @description: Tabellen für Hintergrundjobs |
|
3 |
-- @depends: release_2_6_1 |
|
4 |
-- @charset: utf-8 |
|
5 |
|
|
6 |
CREATE TABLE background_jobs ( |
|
7 |
id serial NOT NULL, |
|
8 |
type character varying(255), |
|
9 |
package_name character varying(255), |
|
10 |
last_run_at timestamp without time zone, |
|
11 |
next_run_at timestamp without time zone, |
|
12 |
data text, |
|
13 |
active boolean, |
|
14 |
cron_spec character varying(255), |
|
15 |
|
|
16 |
PRIMARY KEY (id) |
|
17 |
); |
|
18 |
|
|
19 |
CREATE TABLE background_job_histories ( |
|
20 |
id serial NOT NULL, |
|
21 |
package_name character varying(255), |
|
22 |
run_at timestamp without time zone, |
|
23 |
status character varying(255), |
|
24 |
result text, |
|
25 |
error text, |
|
26 |
data text, |
|
27 |
|
|
28 |
PRIMARY KEY (id) |
|
29 |
); |
Auch abrufbar als: Unified diff
Datenbankschema & Models für Hintergrundjobs