summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2006-09-15 14:50:28 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2006-09-15 14:50:28 +0000
commit14d2fffe3a4e31734c257d99d73de2b80128112a (patch)
treecc2454ec4c1336a853a06cf842566f7e154bad4a
parentbe9f7146e9e9ecad28c8cdd569b2245913700fd8 (diff)
Added the foreign key constraint to pg_tables too...
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@100 4979c152-3d1c-0410-bac9-87ea11338e46
-rwxr-xr-xsql/Pg-tables.sql2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/Pg-tables.sql b/sql/Pg-tables.sql
index 1490acfc..831c353d 100755
--- a/sql/Pg-tables.sql
+++ b/sql/Pg-tables.sql
@@ -74,7 +74,7 @@ INSERT INTO defaults (version) VALUES ('2.6.17');
--
CREATE TABLE acc_trans (
trans_id int,
- chart_id int NOT NULL,
+ chart_id int NOT NULL REFERENCES chart (id),
amount numeric(10,2),
transdate date DEFAULT current_date,
source text,