diff options
Diffstat (limited to 'sql/legacy/Pg-upgrade-2.3.7-2.3.8.sql')
-rwxr-xr-x | sql/legacy/Pg-upgrade-2.3.7-2.3.8.sql | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sql/legacy/Pg-upgrade-2.3.7-2.3.8.sql b/sql/legacy/Pg-upgrade-2.3.7-2.3.8.sql new file mode 100755 index 00000000..56979bee --- /dev/null +++ b/sql/legacy/Pg-upgrade-2.3.7-2.3.8.sql @@ -0,0 +1,16 @@ +-- +create table audittrail ( + trans_id int, + tablename text, + reference text, + formname text, + action text, + transdate timestamp default current_timestamp, + employee_id int +); +create index audittrail_trans_id_key on audittrail (trans_id); +-- +alter table defaults add audittrail bool; +alter table defaults alter audittrail set default '0'; +-- +update defaults set version = '2.3.8', audittrail = '0'; |