diff options
Diffstat (limited to 'sql')
-rwxr-xr-x | sql/Pg-tables.sql | 2 | ||||
-rw-r--r-- | sql/Pg-upgrade-2.6.18-2.6.19.sql | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/sql/Pg-tables.sql b/sql/Pg-tables.sql index 32dffb9a..59e60248 100755 --- a/sql/Pg-tables.sql +++ b/sql/Pg-tables.sql @@ -78,7 +78,7 @@ CREATE TABLE defaults ( ); -- CREATE TABLE acc_trans ( - trans_id int REFERENCES transactions(id), + trans_id int, chart_id int NOT NULL REFERENCES chart (id), amount NUMERIC, transdate date DEFAULT current_date, diff --git a/sql/Pg-upgrade-2.6.18-2.6.19.sql b/sql/Pg-upgrade-2.6.18-2.6.19.sql index d8e304f3..b60aadac 100644 --- a/sql/Pg-upgrade-2.6.18-2.6.19.sql +++ b/sql/Pg-upgrade-2.6.18-2.6.19.sql @@ -1,5 +1,3 @@ -ALTER TABLE acc_trans ADD FOREIGN KEY (trans_id) REFERENCES transactions (id); - ALTER TABLE ap ADD PRIMARY KEY (id); ALTER TABLE ar ADD PRIMARY KEY (id); |