diff options
author | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-11-24 04:59:29 +0000 |
---|---|---|
committer | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-11-24 04:59:29 +0000 |
commit | e3e1796e7fc5cefb0ad16f3568a75a049ebe0f29 (patch) | |
tree | 6b2600821e2eb0f34acca01d9f5fd618aaaa5de4 /sql | |
parent | fe5bc02eaaa596afadada71754afa84edd8910c8 (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')
-rw-r--r-- | sql/fixes/transactions_pkey_repost.sql | 7 |
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'; |