From ac5b087ea2d9ba7428d367aaeb288534158fee9a Mon Sep 17 00:00:00 2001
From: christopherm <christopherm@4979c152-3d1c-0410-bac9-87ea11338e46>
Date: Fri, 1 Sep 2006 01:16:38 +0000
Subject: Initial Import

git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/ledger-smb@1 4979c152-3d1c-0410-bac9-87ea11338e46
---
 sql/Pg-upgrade-2.3.7-2.3.8.sql | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100755 sql/Pg-upgrade-2.3.7-2.3.8.sql

(limited to 'sql/Pg-upgrade-2.3.7-2.3.8.sql')

diff --git a/sql/Pg-upgrade-2.3.7-2.3.8.sql b/sql/Pg-upgrade-2.3.7-2.3.8.sql
new file mode 100755
index 00000000..56979bee
--- /dev/null
+++ b/sql/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';
-- 
cgit v1.2.3

