From 2bfc5cb861632d29d238b10b7ab34f416c41d1b9 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Thu, 21 Jun 2012 14:18:13 +0000 Subject: [PATCH] Fix action_gestion add not null constraint + default =-1 for ag_dest --- sql/upgrade.sql | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sql/upgrade.sql b/sql/upgrade.sql index f5f0c1767..eedcbb609 100644 --- a/sql/upgrade.sql +++ b/sql/upgrade.sql @@ -388,7 +388,10 @@ CREATE TABLE stock_change ALTER TABLE stock_goods ADD CONSTRAINT stock_goods_c_id_fkey FOREIGN KEY (c_id) REFERENCES stock_change (c_id) MATCH SIMPLE ON UPDATE CASCADE ON DELETE CASCADE; -update action_gestion set ag_id=-1 ; + +update action_gestion set ag_dest=-1 ; +alter table action_gestion alter ag_dest set not null; +alter table action_gestion alter ag_dest set default -1; update menu_ref set me_code='CSV:reportinit' where me_code='CVS:reportinit'; update menu_ref set me_file='export_histo_csv.php' where me_code='CSV:histo';