summaryrefslogtreecommitdiff
path: root/sql/fixes
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-11-24 04:59:29 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-11-24 04:59:29 +0000
commite3e1796e7fc5cefb0ad16f3568a75a049ebe0f29 (patch)
tree6b2600821e2eb0f34acca01d9f5fd618aaaa5de4 /sql/fixes
parentfe5bc02eaaa596afadada71754afa84edd8910c8 (diff)
Adding hotfix for 1819483
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@1896 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'sql/fixes')
-rw-r--r--sql/fixes/transactions_pkey_repost.sql7
1 files changed, 7 insertions, 0 deletions
diff --git a/sql/fixes/transactions_pkey_repost.sql b/sql/fixes/transactions_pkey_repost.sql
new file mode 100644
index 00000000..cc3935a6
--- /dev/null
+++ b/sql/fixes/transactions_pkey_repost.sql
@@ -0,0 +1,7 @@
+
+CREATE RULE ap_track_d AS ON DELETE TO ap DO ALSO DELETE FROM transactions
+WHERE id = old.id AND table_name = 'ap';
+CREATE RULE ar_track_d AS ON DELETE TO ar DO ALSO DELETE FROM transactions
+WHERE id = old.id AND table_name = 'ar';
+CREATE RULE gl_track_d AS ON DELETE TO ap DO ALSO DELETE FROM transactions
+WHERE id = old.id AND table_name = 'gl';