From 3db26be289555dd5127f0a86212d4fbf77633251 Mon Sep 17 00:00:00 2001 From: sparkyx Date: Thu, 25 Mar 2021 17:48:10 +0100 Subject: [PATCH] Task #0001904: Previsions et budgets rewriting of forecast : missing SQL files --- include/constant.php | 2 +- include/sql/patch/upgrade153.sql | 5 +++++ sql/upgrade.sql | 2 -- 3 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 include/sql/patch/upgrade153.sql diff --git a/include/constant.php b/include/constant.php index 672e3de17..0202670a6 100644 --- a/include/constant.php +++ b/include/constant.php @@ -110,7 +110,7 @@ if ( !defined ("NOALYSS_PACKAGE_REPOSITORY")) { if ( ! defined ("SYSINFO_DISPLAY")) { define ("SYSINFO_DISPLAY",TRUE); } -define ("DBVERSION",153); +define ("DBVERSION",154); define ("MONO_DATABASE",25); define ("DBVERSIONREPO",19); define ('NOTFOUND','--not found--'); diff --git a/include/sql/patch/upgrade153.sql b/include/sql/patch/upgrade153.sql new file mode 100644 index 000000000..03a276697 --- /dev/null +++ b/include/sql/patch/upgrade153.sql @@ -0,0 +1,5 @@ +begin ; +alter table forecast_cat rename to forecast_category; +alter table forecast_category alter f_id set not null; +insert into version (val,v_description) values (154,'Rewriting of FORECAST'); +commit; \ No newline at end of file diff --git a/sql/upgrade.sql b/sql/upgrade.sql index fc4f7043c..e69de29bb 100644 --- a/sql/upgrade.sql +++ b/sql/upgrade.sql @@ -1,2 +0,0 @@ -alter table forecast_cat rename to forecast_category; -alter table forecast_category alter f_id set not null;