From 14d2fffe3a4e31734c257d99d73de2b80128112a Mon Sep 17 00:00:00 2001 From: einhverfr Date: Fri, 15 Sep 2006 14:50:28 +0000 Subject: 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 --- sql/Pg-tables.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sql') 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, -- cgit v1.2.3