From 910ae8b9f279943b3f267eac6cba50d8f42d62f9 Mon Sep 17 00:00:00 2001 From: sparkyx Date: Sun, 18 Feb 2024 13:24:19 +0100 Subject: [PATCH] Upgrade SQL --- include/constant.php | 2 +- include/sql/patch/upgrade194.sql | 35 ++++++++++++++++++++++++++++++++ sql/reverse.sql | 9 -------- sql/upgrade.sql | 28 ------------------------- 4 files changed, 36 insertions(+), 38 deletions(-) create mode 100644 include/sql/patch/upgrade194.sql diff --git a/include/constant.php b/include/constant.php index ed6d1201b..cc2868b6d 100644 --- a/include/constant.php +++ b/include/constant.php @@ -123,7 +123,7 @@ if (!defined("NOALYSS_PACKAGE_REPOSITORY")) { if (!defined("SYSINFO_DISPLAY")) { define("SYSINFO_DISPLAY", TRUE); } -define("DBVERSION", 194); +define("DBVERSION", 195); define("MONO_DATABASE", 25); define("DBVERSIONREPO", 20); define('NOTFOUND', '--not found--'); diff --git a/include/sql/patch/upgrade194.sql b/include/sql/patch/upgrade194.sql new file mode 100644 index 000000000..29c98388e --- /dev/null +++ b/include/sql/patch/upgrade194.sql @@ -0,0 +1,35 @@ +begin; + + +CREATE OR REPLACE FUNCTION comptaproc.trg_remove_script_tag() + RETURNS trigger + LANGUAGE plpgsql +AS $function$ + +begin + + NEW.agc_comment_raw:= regexp_replace(NEW.agc_comment_raw, '