From 0ddcaffc0a16c36b1e3a1f4290d974c450b039bc Mon Sep 17 00:00:00 2001 From: sparkyx Date: Tue, 20 Jan 2026 18:24:10 +0100 Subject: [PATCH] SQL Install comptability --- include/sql/account_repository/data.sql | 10 ++-------- include/sql/account_repository/schema.sql | 10 +++------- include/sql/mod1/data.sql | 12 +++--------- include/sql/mod1/schema.sql | 18 ++---------------- include/sql/mod2/data.sql | 10 +++------- include/sql/mod2/schema.sql | 10 +++------- 6 files changed, 16 insertions(+), 54 deletions(-) diff --git a/include/sql/account_repository/data.sql b/include/sql/account_repository/data.sql index 7495da312..5fc01c77e 100644 --- a/include/sql/account_repository/data.sql +++ b/include/sql/account_repository/data.sql @@ -1,17 +1,11 @@ set search_path = public,comptaproc,pg_catalog ; -SET statement_timeout = 0; -SET lock_timeout = 0; -SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; -SET standard_conforming_strings = on; -SELECT pg_catalog.set_config('search_path', '', false); +SET standard_conforming_strings = off; SET check_function_bodies = false; -SET xmloption = content; SET client_min_messages = warning; -SET row_security = off; - +SET escape_string_warning = off; diff --git a/include/sql/account_repository/schema.sql b/include/sql/account_repository/schema.sql index 3218ac824..830347513 100644 --- a/include/sql/account_repository/schema.sql +++ b/include/sql/account_repository/schema.sql @@ -1,15 +1,11 @@ -SET statement_timeout = 0; -SET lock_timeout = 0; -SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; -SET standard_conforming_strings = on; -SELECT pg_catalog.set_config('search_path', '', false); +SET standard_conforming_strings = off; SET check_function_bodies = false; -SET xmloption = content; SET client_min_messages = warning; -SET row_security = off; +SET escape_string_warning = off; + CREATE FUNCTION public.limit_user() RETURNS trigger diff --git a/include/sql/mod1/data.sql b/include/sql/mod1/data.sql index 62e870ec7..a76b83b5f 100644 --- a/include/sql/mod1/data.sql +++ b/include/sql/mod1/data.sql @@ -1,17 +1,11 @@ set search_path = public,comptaproc,pg_catalog ; - -SET statement_timeout = 0; -SET lock_timeout = 0; -SET idle_in_transaction_session_timeout = 0; -SET transaction_timeout = 0; SET client_encoding = 'UTF8'; -SET standard_conforming_strings = on; -SELECT pg_catalog.set_config('search_path', '', false); +SET standard_conforming_strings = off; SET check_function_bodies = false; -SET xmloption = content; SET client_min_messages = warning; -SET row_security = off; +SET escape_string_warning = off; + SELECT pg_catalog.lo_create('2346174'); diff --git a/include/sql/mod1/schema.sql b/include/sql/mod1/schema.sql index afc0887fe..f44dc527f 100644 --- a/include/sql/mod1/schema.sql +++ b/include/sql/mod1/schema.sql @@ -1,28 +1,14 @@ -SET statement_timeout = 0; -SET lock_timeout = 0; -SET idle_in_transaction_session_timeout = 0; -SET transaction_timeout = 0; SET client_encoding = 'UTF8'; -SET standard_conforming_strings = on; -SELECT pg_catalog.set_config('search_path', '', false); +SET standard_conforming_strings = off; SET check_function_bodies = false; -SET xmloption = content; SET client_min_messages = warning; -SET row_security = off; +SET escape_string_warning = off; CREATE SCHEMA comptaproc; - - -<<<<<<< HEAD -======= - - - ->>>>>>> review-stash CREATE SCHEMA tva_belge; diff --git a/include/sql/mod2/data.sql b/include/sql/mod2/data.sql index 806144100..d116b3b60 100644 --- a/include/sql/mod2/data.sql +++ b/include/sql/mod2/data.sql @@ -1,16 +1,12 @@ set search_path = public,comptaproc,pg_catalog ; -SET statement_timeout = 0; -SET lock_timeout = 0; -SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; -SET standard_conforming_strings = on; -SELECT pg_catalog.set_config('search_path', '', false); +SET standard_conforming_strings = off; SET check_function_bodies = false; -SET xmloption = content; SET client_min_messages = warning; -SET row_security = off; +SET escape_string_warning = off; + SELECT pg_catalog.lo_create('2351550'); diff --git a/include/sql/mod2/schema.sql b/include/sql/mod2/schema.sql index b47e34817..2d1b8f525 100644 --- a/include/sql/mod2/schema.sql +++ b/include/sql/mod2/schema.sql @@ -1,15 +1,11 @@ -SET statement_timeout = 0; -SET lock_timeout = 0; -SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; -SET standard_conforming_strings = on; -SELECT pg_catalog.set_config('search_path', '', false); +SET standard_conforming_strings = off; SET check_function_bodies = false; -SET xmloption = content; SET client_min_messages = warning; -SET row_security = off; +SET escape_string_warning = off; + CREATE SCHEMA comptaproc;