[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 88/107: SQL : correct SQL script to take care
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 88/107: SQL : correct SQL script to take care of users who delete the profile no 2 |
Date: |
Mon, 26 Aug 2019 10:32:07 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 9fe4f7ae434893f0a54c2640fdd06152086b22f3
Author: Dany De Bontridder <address@hidden>
Date: Mon Aug 19 12:04:43 2019 +0200
SQL : correct SQL script to take care of users who
delete the profile no 2
---
include/sql/patch/upgrade135.sql | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/sql/patch/upgrade135.sql b/include/sql/patch/upgrade135.sql
index e45fa03..5b57918 100644
--- a/include/sql/patch/upgrade135.sql
+++ b/include/sql/patch/upgrade135.sql
@@ -8,16 +8,16 @@ select me_code,'PRINT',1,250,'E',0,6 from menu_ref where
me_code='PRINTTVA'
union
select me_code,'PRINT',1,250,'E',0,35 from menu_ref where me_code='PRINTTVA'
union
-select me_code,'PRINT',2,250,'E',0,719 from menu_ref where me_code='PRINTTVA'
+select me_code,'PRINT',2,250,'E',0,719 from menu_ref where me_code='PRINTTVA'
and exists (select 1 from profile where p_id=2)
union
-select me_code,'PRINT',2,250,'E',0,716 from menu_ref where me_code='PRINTTVA'
+select me_code,'PRINT',2,250,'E',0,716 from menu_ref where me_code='PRINTTVA'
and exists (select 1 from profile where p_id=2)
;
insert into menu_ref (me_code,me_menu,me_file,me_type)
values ('CSV:printtva','Export Résumé TVA','export_printtva_csv.php','PR'),
('PDF:printtva','Export Résumé TVA','export_printtva_pdf.php','PR')
;
-insert into profile_menu(me_code,p_id,p_type_display) values
('CSV:printtva',1,'P'),('PDF:printtva',1,'P'),('CSV:printtva',2,'P'),('PDF:printtva',2,'P');
+insert into profile_menu(me_code,p_id,p_type_display) select
'CSV:printtva',p_id,'P' from profile where p_id in (1,2) union all select
'PDF:printtva',p_id,'P' from profile where p_id in (1,2);
insert into version (val,v_description) values (136,'new feature PRINTTVA');
commit ;
\ No newline at end of file
- [Noalyss-commit] [noalyss] 94/107: Bug : Database::fetch_all returns an array or FALSE, because of pg_fetch_all, the version PHP7 cannot use anymore a boolean with count()., (continued)
- [Noalyss-commit] [noalyss] 94/107: Bug : Database::fetch_all returns an array or FALSE, because of pg_fetch_all, the version PHP7 cannot use anymore a boolean with count()., Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 63/107: remove background color, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 66/107: Code cleaning : rename table mod_payment to payment_method, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 53/107: Select_Box new Object, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 55/107: Merge branch 'master' of gitlab.noalyss.eu:noalyss/noalyss, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 57/107: PDF_Core : code cleaning, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 71/107: Select_Box add a search, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 77/107: Security : replace direct use of $_GET, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 45/107: Replace PHPCOMPTA by NOALYSS, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 90/107: Cosmetic : add button close in history card & accounting, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 88/107: SQL : correct SQL script to take care of users who delete the profile no 2,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 104/107: 0001728: Aide à l'encodage - Journaux négatifs (note de crédit) Unit test, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 48/107: Doxygen does not allow to document javascript Remove tag for using with jsdoc, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 89/107: Task #1735: Détail opération utilisation icone poubelle, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 103/107: Fix 0001728: Aide à l'encodage - Journaux négatifs (note de crédit) SQL Scripts, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 97/107: New : InputSwitch, display a switch and change the value of a hidden variable, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 102/107: New Task 1728: Aide à l'encodage - Journaux négatifs (note de crédit), Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 42/107: squash! PHPUnit : adapt to new version, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 49/107: translation, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 86/107: Cosmetic : Icon_Trash in Todo_List, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 96/107: traduction, Dany De Bontridder, 2019/08/26