diff --git a/include/constant.php b/include/constant.php index cf9d44c1a..94e469060 100644 --- a/include/constant.php +++ b/include/constant.php @@ -28,7 +28,7 @@ global $version_noalyss; define('NOALYSS_VERSION', 10200 ); // Database schema version -define("DBVERSION", 207); +define("DBVERSION", 208); // version for MONO_DATABASE define("MONO_DATABASE", 25); diff --git a/include/sql/patch/upgrade207.sql b/include/sql/patch/upgrade207.sql new file mode 100644 index 000000000..ef47c1b58 --- /dev/null +++ b/include/sql/patch/upgrade207.sql @@ -0,0 +1,7 @@ +begin; + +ALTER TABLE public.jrn_sup_document DROP CONSTRAINT jrn_sup_document_jrn_fk; +ALTER TABLE public.jrn_sup_document ADD CONSTRAINT jrn_sup_document_jrn_fk FOREIGN KEY (jr_id) REFERENCES public.jrn(jr_id) ON DELETE CASCADE ON UPDATE CASCADE; + +insert into version (val,v_description) values (208,'delete an operation + additional documents'); +commit; \ No newline at end of file