[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb: [99] trunk



Revision: 99
          http://svn.sourceforge.net/ledger-smb/?rev=99&view=rev
Author:   einhverfr
Date:     2006-09-15 07:49:17 -0700 (Fri, 15 Sep 2006)

Log Message:
-----------
Added foreign key constraint to acc_trans

Modified Paths:
--------------
    trunk/Changelog
    trunk/sql/Pg-upgrade-2.6.17-2.6.18.sql

Modified: trunk/Changelog
===================================================================
--- trunk/Changelog	2006-09-15 06:36:29 UTC (rev 98)
+++ trunk/Changelog	2006-09-15 14:49:17 UTC (rev 99)
@@ -6,11 +6,14 @@
 * DB Updates now use one transaction per update file.
 * FLOAT datatypes removed from database
 * Protection against duplicate transaction id's.
+* Added foreign key constraint to acc_trans.chart_id
 
 Security
 * One is required to change the admin password when it is blank (on first login etc).
 
 Usability
+* Setup.pl use is now experimentally supported
+* Disabled editing sub-assemblies in one area where it is unsafe.
 * Utility included for near-real-time parts short email notifications.
 * Fixed Lynx support
 * Batch printing now available for checks

Modified: trunk/sql/Pg-upgrade-2.6.17-2.6.18.sql
===================================================================
--- trunk/sql/Pg-upgrade-2.6.17-2.6.18.sql	2006-09-15 06:36:29 UTC (rev 98)
+++ trunk/sql/Pg-upgrade-2.6.17-2.6.18.sql	2006-09-15 14:49:17 UTC (rev 99)
@@ -11,6 +11,9 @@
 UPDATE acc_trans SET entry_id = nextval('acctrans_entry_id_seq');
 ALTER TABLE acc_trans ADD PRIMARY key (entry_id);
 
+-- We should probably add a foreign key to chart.id
+ALTER TABLE acc_trans ADD FOREIGN KEY (chart_id) REFERENCES chart (id);
+
 -- Start changing floats
 ALTER TABLE acc_trans ALTER COLUMN amount TYPE numeric(10,2);
 
@@ -220,5 +223,6 @@
 CREATE RULE warehouse_id_track_u AS ON update TO warehouse 
 DO ALSO UPDATE id_tracker SET id = new.id WHERE id = old.id;
 
+
 COMMIT;
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.