phpcompta-dev
[Top][All Lists]
Advanced

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

[Phpcompta-dev] r4991 - phpcompta/trunk/sql


From: phpcompta-dev
Subject: [Phpcompta-dev] r4991 - phpcompta/trunk/sql
Date: Sun, 24 Jun 2012 19:20:11 +0200 (CEST)

Author: danydb
Date: 2012-06-24 19:20:10 +0200 (Sun, 24 Jun 2012)
New Revision: 4991

Modified:
   phpcompta/trunk/sql/upgrade.sql
Log:
Lors de l'upgrade les profiles existants ont acc?\195?\168s au 
d?\195?\169p?\195?\180t par d?\195?\169faut

Modified: phpcompta/trunk/sql/upgrade.sql
===================================================================
--- phpcompta/trunk/sql/upgrade.sql     2012-06-24 17:16:58 UTC (rev 4990)
+++ phpcompta/trunk/sql/upgrade.sql     2012-06-24 17:20:10 UTC (rev 4991)
@@ -244,6 +244,7 @@
 
 insert into stock_repository(r_name) values ('Dépôt par défaut');
 
+
 CREATE TABLE profile_sec_repository
 (
   ur_id bigserial NOT NULL, -- pk
@@ -269,6 +270,9 @@
 alter table profile_sec_repository add constraint 
profile_sec_repository_r_id_p_id_u unique (r_id,p_id);
 alter table user_sec_action_profile add constraint 
user_sec_action_profile_p_id_p_granted_u unique (p_id,p_granted);
 update stock_goods set r_id=1;
+
+insert into profile_sec_repository (p_id,r_id,ur_right) select p_id,1,'W' from 
profile where p_id > 0;
+
 CREATE INDEX fk_stock_good_repository_r_id  ON stock_goods  (r_id );
 alter table action_gestion drop ag_cal;
 



---
PhpCompta est un logiciel de comptabilité libre en ligne (full web)
Projet opensource http://www.phpcompta.eu



reply via email to

[Prev in Thread] Current Thread [Next in Thread]