diff options
author | Ivan Kohler <ivan@freeside.biz> | 2014-07-26 14:48:08 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2014-07-26 14:48:08 -0700 |
commit | 02bf58c3c5db507d4652d24b1788208ca6c4d759 (patch) | |
tree | 69bfd399b4f2c043bc8b9b42e2e6f24326a2d2a6 | |
parent | 0ce1f788031c5eaac0c620add539730dd87e3113 (diff) |
queue statistics, RT#30238
-rw-r--r-- | FS/FS/Schema.pm | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/FS/FS/Schema.pm b/FS/FS/Schema.pm index 40248ddfc..6486eed48 100644 --- a/FS/FS/Schema.pm +++ b/FS/FS/Schema.pm @@ -200,7 +200,7 @@ sub dbdef_dist { grep { ! /^(clientapi|access_user)_session/ && ! /^h_/ && ! /^log(_context)?$/ - && ( ! /^queue(_arg)?$/ || ! $opt->{'queue-no_history'} ) + && ( ! /^queue(_arg|_depend|_stat)?$/ || ! $opt->{'queue-no_history'} ) && ! $tables_hashref_torrus->{$_} } $dbdef->tables @@ -4175,6 +4175,21 @@ sub tables_hashref { ], }, + 'queue_stat' => { + 'columns' => [ + 'statnum', 'bigserial', '', '', '', '', + 'jobnum', 'bigint', '', '', '', '', + 'job', 'varchar', '', 512, '', '', + 'custnum', 'int', 'NULL', '', '', '', + 'insert_date', @date_type, '', '', + 'start_date', @date_type, '', '', + 'end_date', @date_type, '', '', + ], + 'primary_key' => 'statnum', + 'unique' => [], #[ ['jobnum'] ], + 'index' => [], + }, + 'export_svc' => { 'columns' => [ 'exportsvcnum' => 'serial', '', '', '', '', |