From 8395fa501827306002e3a01c7053f495bff844c2 Mon Sep 17 00:00:00 2001 From: einhverfr Date: Mon, 25 Sep 2006 06:41:39 +0000 Subject: Moved Form.pm to parameterized queries. Did some basic testing, but can't guarantee that nothing broke. git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@146 4979c152-3d1c-0410-bac9-87ea11338e46 --- sql/Pg-tables.sql | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'sql') diff --git a/sql/Pg-tables.sql b/sql/Pg-tables.sql index 8e49dcd4..82703efc 100755 --- a/sql/Pg-tables.sql +++ b/sql/Pg-tables.sql @@ -12,7 +12,11 @@ CREATE SEQUENCE jcitemsid; SELECT nextval ('jcitemsid'); -- - +create table transactions ( + id int PRIMARY KEY, + table_name text +); +-- CREATE TABLE makemodel ( parts_id int PRIMARY KEY, make text, @@ -75,7 +79,7 @@ CREATE TABLE defaults ( ); -- CREATE TABLE acc_trans ( - trans_id int, + trans_id int REFERENCES transactions(id), chart_id int NOT NULL REFERENCES chart (id), amount NUMERIC, transdate date DEFAULT current_date, -- cgit v1.2.3