From f4490af9297f5c3ad4753353a4a4d69f3027ec77 Mon Sep 17 00:00:00 2001 From: leosw Date: Sun, 18 Jan 2026 14:21:43 +0100 Subject: [PATCH] =?UTF-8?q?Simplification=20du=20mod=C3=A8le=20squelette?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _ressources/sql_skeleton.sql | 188 ----------------------------------- 1 file changed, 188 deletions(-) diff --git a/_ressources/sql_skeleton.sql b/_ressources/sql_skeleton.sql index ebb51bf..08eddb1 100755 --- a/_ressources/sql_skeleton.sql +++ b/_ressources/sql_skeleton.sql @@ -1,94 +1,10 @@ --- --- PostgreSQL database cluster dump --- - --- Started on 2026-01-18 13:24:51 CET - -\restrict zBsV2i7KJ2Icq3HtbOeWFsgcJfohHtzREyc9ZWIzfgOdQcgw5ViINwJuAFQk0WY - -SET default_transaction_read_only = off; - -SET client_encoding = 'UTF8'; -SET standard_conforming_strings = on; - --- --- Roles --- - -CREATE ROLE kabano; -ALTER ROLE kabano WITH NOSUPERUSER INHERIT CREATEROLE CREATEDB LOGIN NOREPLICATION NOBYPASSRLS; -CREATE ROLE postgres; -ALTER ROLE postgres WITH SUPERUSER INHERIT CREATEROLE CREATEDB LOGIN REPLICATION BYPASSRLS; - --- --- User Configurations --- - - - - - - - - -\unrestrict zBsV2i7KJ2Icq3HtbOeWFsgcJfohHtzREyc9ZWIzfgOdQcgw5ViINwJuAFQk0WY - --- --- Databases --- - --- --- Database "template1" dump --- - -\connect template1 - -- -- PostgreSQL database dump -- -\restrict N4deUMF6T8wvIbcGzzGoslc1W6Ko7vIwj6D9iFxaEPdDC4n9DIcZ0MJIcNN0edI - -- Dumped from database version 18.1 -- Dumped by pg_dump version 18.1 --- Started on 2026-01-18 13:24:51 CET - -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 check_function_bodies = false; -SET xmloption = content; -SET client_min_messages = warning; -SET row_security = off; - --- Completed on 2026-01-18 13:24:51 CET - --- --- PostgreSQL database dump complete --- - -\unrestrict N4deUMF6T8wvIbcGzzGoslc1W6Ko7vIwj6D9iFxaEPdDC4n9DIcZ0MJIcNN0edI - --- --- Database "kabano" dump --- - --- --- PostgreSQL database dump --- - -\restrict bSLw7Pr4TIr8dQjZ18Ar1YjCDA44ZzM9Sih1yiKYfw4huFAwIekfsvVnECWSWT0 - --- Dumped from database version 18.1 --- Dumped by pg_dump version 18.1 - --- Started on 2026-01-18 13:24:51 CET - SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; @@ -102,33 +18,6 @@ SET client_min_messages = warning; SET row_security = off; -- --- TOC entry 4519 (class 1262 OID 16389) --- Name: kabano; Type: DATABASE; Schema: -; Owner: postgres --- - -CREATE DATABASE kabano WITH TEMPLATE = template0 ENCODING = 'UTF8' LOCALE_PROVIDER = libc LOCALE = 'fr_FR.UTF-8'; - - -ALTER DATABASE kabano OWNER TO postgres; - -\unrestrict bSLw7Pr4TIr8dQjZ18Ar1YjCDA44ZzM9Sih1yiKYfw4huFAwIekfsvVnECWSWT0 -\connect kabano -\restrict bSLw7Pr4TIr8dQjZ18Ar1YjCDA44ZzM9Sih1yiKYfw4huFAwIekfsvVnECWSWT0 - -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 check_function_bodies = false; -SET xmloption = content; -SET client_min_messages = warning; -SET row_security = off; - --- --- TOC entry 6 (class 2615 OID 2200) -- Name: public; Type: SCHEMA; Schema: -; Owner: postgres -- @@ -138,7 +27,6 @@ SET row_security = off; ALTER SCHEMA public OWNER TO postgres; -- --- TOC entry 2 (class 3079 OID 16816) -- Name: postgis; Type: EXTENSION; Schema: -; Owner: - -- @@ -146,8 +34,6 @@ CREATE EXTENSION IF NOT EXISTS postgis WITH SCHEMA public; -- --- TOC entry 4521 (class 0 OID 0) --- Dependencies: 2 -- Name: EXTENSION postgis; Type: COMMENT; Schema: -; Owner: -- @@ -155,7 +41,6 @@ COMMENT ON EXTENSION postgis IS 'PostGIS geometry and geography spatial types an -- --- TOC entry 1632 (class 1247 OID 16391) -- Name: content_type_enum; Type: TYPE; Schema: public; Owner: kabano -- @@ -170,7 +55,6 @@ CREATE TYPE public.content_type_enum AS ENUM ( ALTER TYPE public.content_type_enum OWNER TO kabano; -- --- TOC entry 1635 (class 1247 OID 16398) -- Name: poi_type_enum; Type: TYPE; Schema: public; Owner: kabano -- @@ -187,7 +71,6 @@ CREATE TYPE public.poi_type_enum AS ENUM ( ALTER TYPE public.poi_type_enum OWNER TO kabano; -- --- TOC entry 1638 (class 1247 OID 16412) -- Name: user_rank_enum; Type: TYPE; Schema: public; Owner: kabano -- @@ -204,7 +87,6 @@ CREATE TYPE public.user_rank_enum AS ENUM ( ALTER TYPE public.user_rank_enum OWNER TO kabano; -- --- TOC entry 220 (class 1259 OID 16425) -- Name: content_comments_sequence; Type: SEQUENCE; Schema: public; Owner: kabano -- @@ -223,7 +105,6 @@ SET default_tablespace = ''; SET default_table_access_method = heap; -- --- TOC entry 221 (class 1259 OID 16426) -- Name: content_comments; Type: TABLE; Schema: public; Owner: kabano -- @@ -244,7 +125,6 @@ CREATE TABLE public.content_comments ( ALTER TABLE public.content_comments OWNER TO kabano; -- --- TOC entry 222 (class 1259 OID 16432) -- Name: content_contributors_sequence; Type: SEQUENCE; Schema: public; Owner: kabano -- @@ -259,7 +139,6 @@ CREATE SEQUENCE public.content_contributors_sequence ALTER SEQUENCE public.content_contributors_sequence OWNER TO kabano; -- --- TOC entry 223 (class 1259 OID 16433) -- Name: content_contributors; Type: TABLE; Schema: public; Owner: kabano -- @@ -273,7 +152,6 @@ CREATE TABLE public.content_contributors ( ALTER TABLE public.content_contributors OWNER TO kabano; -- --- TOC entry 224 (class 1259 OID 16437) -- Name: content_locales_sequence; Type: SEQUENCE; Schema: public; Owner: kabano -- @@ -288,7 +166,6 @@ CREATE SEQUENCE public.content_locales_sequence ALTER SEQUENCE public.content_locales_sequence OWNER TO kabano; -- --- TOC entry 225 (class 1259 OID 16438) -- Name: content_locales; Type: TABLE; Schema: public; Owner: kabano -- @@ -303,7 +180,6 @@ CREATE TABLE public.content_locales ( ALTER TABLE public.content_locales OWNER TO kabano; -- --- TOC entry 245 (class 1259 OID 17898) -- Name: content_version_position; Type: TABLE; Schema: public; Owner: postgres -- @@ -316,7 +192,6 @@ CREATE TABLE public.content_version_position ( ALTER TABLE public.content_version_position OWNER TO postgres; -- --- TOC entry 226 (class 1259 OID 16442) -- Name: content_versions_sequence; Type: SEQUENCE; Schema: public; Owner: kabano -- @@ -331,7 +206,6 @@ CREATE SEQUENCE public.content_versions_sequence ALTER SEQUENCE public.content_versions_sequence OWNER TO kabano; -- --- TOC entry 227 (class 1259 OID 16443) -- Name: content_versions; Type: TABLE; Schema: public; Owner: kabano -- @@ -350,7 +224,6 @@ CREATE TABLE public.content_versions ( ALTER TABLE public.content_versions OWNER TO kabano; -- --- TOC entry 228 (class 1259 OID 16451) -- Name: contents_sequence; Type: SEQUENCE; Schema: public; Owner: kabano -- @@ -365,7 +238,6 @@ CREATE SEQUENCE public.contents_sequence ALTER SEQUENCE public.contents_sequence OWNER TO kabano; -- --- TOC entry 229 (class 1259 OID 16452) -- Name: contents; Type: TABLE; Schema: public; Owner: kabano -- @@ -384,7 +256,6 @@ CREATE TABLE public.contents ( ALTER TABLE public.contents OWNER TO kabano; -- --- TOC entry 230 (class 1259 OID 16458) -- Name: locales; Type: TABLE; Schema: public; Owner: kabano -- @@ -398,7 +269,6 @@ CREATE TABLE public.locales ( ALTER TABLE public.locales OWNER TO kabano; -- --- TOC entry 231 (class 1259 OID 16461) -- Name: poi_comments_sequence; Type: SEQUENCE; Schema: public; Owner: kabano -- @@ -413,7 +283,6 @@ CREATE SEQUENCE public.poi_comments_sequence ALTER SEQUENCE public.poi_comments_sequence OWNER TO kabano; -- --- TOC entry 232 (class 1259 OID 16468) -- Name: poi_contributors_sequence; Type: SEQUENCE; Schema: public; Owner: kabano -- @@ -428,7 +297,6 @@ CREATE SEQUENCE public.poi_contributors_sequence ALTER SEQUENCE public.poi_contributors_sequence OWNER TO kabano; -- --- TOC entry 233 (class 1259 OID 16473) -- Name: poi_locales_sequence; Type: SEQUENCE; Schema: public; Owner: kabano -- @@ -443,7 +311,6 @@ CREATE SEQUENCE public.poi_locales_sequence ALTER SEQUENCE public.poi_locales_sequence OWNER TO kabano; -- --- TOC entry 234 (class 1259 OID 16478) -- Name: poi_sources_sequence; Type: SEQUENCE; Schema: public; Owner: kabano -- @@ -458,7 +325,6 @@ CREATE SEQUENCE public.poi_sources_sequence ALTER SEQUENCE public.poi_sources_sequence OWNER TO kabano; -- --- TOC entry 235 (class 1259 OID 16483) -- Name: poi_versions_sequence; Type: SEQUENCE; Schema: public; Owner: kabano -- @@ -473,7 +339,6 @@ CREATE SEQUENCE public.poi_versions_sequence ALTER SEQUENCE public.poi_versions_sequence OWNER TO kabano; -- --- TOC entry 236 (class 1259 OID 16484) -- Name: pois_sequence; Type: SEQUENCE; Schema: public; Owner: kabano -- @@ -488,7 +353,6 @@ CREATE SEQUENCE public.pois_sequence ALTER SEQUENCE public.pois_sequence OWNER TO kabano; -- --- TOC entry 237 (class 1259 OID 16485) -- Name: sources; Type: TABLE; Schema: public; Owner: kabano -- @@ -505,7 +369,6 @@ CREATE TABLE public.sources ( ALTER TABLE public.sources OWNER TO kabano; -- --- TOC entry 238 (class 1259 OID 16490) -- Name: users_id_sequence; Type: SEQUENCE; Schema: public; Owner: kabano -- @@ -520,7 +383,6 @@ CREATE SEQUENCE public.users_id_sequence ALTER SEQUENCE public.users_id_sequence OWNER TO kabano; -- --- TOC entry 239 (class 1259 OID 16491) -- Name: users; Type: TABLE; Schema: public; Owner: kabano -- @@ -544,7 +406,6 @@ CREATE TABLE public.users ( ALTER TABLE public.users OWNER TO kabano; -- --- TOC entry 4308 (class 2606 OID 16457) -- Name: content_comments content_comments_pkey; Type: CONSTRAINT; Schema: public; Owner: kabano -- @@ -553,7 +414,6 @@ ALTER TABLE ONLY public.content_comments -- --- TOC entry 4310 (class 2606 OID 16458) -- Name: content_contributors content_contributors_pkey; Type: CONSTRAINT; Schema: public; Owner: kabano -- @@ -562,7 +422,6 @@ ALTER TABLE ONLY public.content_contributors -- --- TOC entry 4312 (class 2606 OID 16459) -- Name: content_contributors content_contributors_unique; Type: CONSTRAINT; Schema: public; Owner: kabano -- @@ -571,7 +430,6 @@ ALTER TABLE ONLY public.content_contributors -- --- TOC entry 4316 (class 2606 OID 16460) -- Name: content_locales content_locales_pkey; Type: CONSTRAINT; Schema: public; Owner: kabano -- @@ -580,7 +438,6 @@ ALTER TABLE ONLY public.content_locales -- --- TOC entry 4318 (class 2606 OID 16461) -- Name: content_locales content_locales_unique; Type: CONSTRAINT; Schema: public; Owner: kabano -- @@ -589,7 +446,6 @@ ALTER TABLE ONLY public.content_locales -- --- TOC entry 4350 (class 2606 OID 17906) -- Name: content_version_position content_version_position_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres -- @@ -598,7 +454,6 @@ ALTER TABLE ONLY public.content_version_position -- --- TOC entry 4320 (class 2606 OID 16462) -- Name: content_versions content_versions_pkey; Type: CONSTRAINT; Schema: public; Owner: kabano -- @@ -607,7 +462,6 @@ ALTER TABLE ONLY public.content_versions -- --- TOC entry 4322 (class 2606 OID 16463) -- Name: content_versions content_versions_version_locale_key; Type: CONSTRAINT; Schema: public; Owner: kabano -- @@ -616,7 +470,6 @@ ALTER TABLE ONLY public.content_versions -- --- TOC entry 4325 (class 2606 OID 16464) -- Name: contents contents_permalink_type_key; Type: CONSTRAINT; Schema: public; Owner: kabano -- @@ -625,7 +478,6 @@ ALTER TABLE ONLY public.contents -- --- TOC entry 4327 (class 2606 OID 16465) -- Name: contents contents_pkey; Type: CONSTRAINT; Schema: public; Owner: kabano -- @@ -634,7 +486,6 @@ ALTER TABLE ONLY public.contents -- --- TOC entry 4329 (class 2606 OID 16466) -- Name: locales locales_display_name_unique; Type: CONSTRAINT; Schema: public; Owner: kabano -- @@ -643,7 +494,6 @@ ALTER TABLE ONLY public.locales -- --- TOC entry 4331 (class 2606 OID 16467) -- Name: locales locales_flag_name_unique; Type: CONSTRAINT; Schema: public; Owner: kabano -- @@ -652,7 +502,6 @@ ALTER TABLE ONLY public.locales -- --- TOC entry 4333 (class 2606 OID 16468) -- Name: locales locales_pkey; Type: CONSTRAINT; Schema: public; Owner: kabano -- @@ -661,7 +510,6 @@ ALTER TABLE ONLY public.locales -- --- TOC entry 4335 (class 2606 OID 16478) -- Name: sources sources_display_name_unique; Type: CONSTRAINT; Schema: public; Owner: kabano -- @@ -670,7 +518,6 @@ ALTER TABLE ONLY public.sources -- --- TOC entry 4337 (class 2606 OID 16479) -- Name: sources sources_pkey; Type: CONSTRAINT; Schema: public; Owner: kabano -- @@ -679,7 +526,6 @@ ALTER TABLE ONLY public.sources -- --- TOC entry 4339 (class 2606 OID 16480) -- Name: users users_email_unique; Type: CONSTRAINT; Schema: public; Owner: kabano -- @@ -688,7 +534,6 @@ ALTER TABLE ONLY public.users -- --- TOC entry 4342 (class 2606 OID 16481) -- Name: users users_name_unique; Type: CONSTRAINT; Schema: public; Owner: kabano -- @@ -697,7 +542,6 @@ ALTER TABLE ONLY public.users -- --- TOC entry 4344 (class 2606 OID 16482) -- Name: users users_pkey; Type: CONSTRAINT; Schema: public; Owner: kabano -- @@ -706,7 +550,6 @@ ALTER TABLE ONLY public.users -- --- TOC entry 4305 (class 1259 OID 16550) -- Name: content_comments_is_archive_index; Type: INDEX; Schema: public; Owner: kabano -- @@ -714,7 +557,6 @@ CREATE INDEX content_comments_is_archive_index ON public.content_comments USING -- --- TOC entry 4306 (class 1259 OID 16551) -- Name: content_comments_is_public_index; Type: INDEX; Schema: public; Owner: kabano -- @@ -722,7 +564,6 @@ CREATE INDEX content_comments_is_public_index ON public.content_comments USING b -- --- TOC entry 4348 (class 1259 OID 17918) -- Name: content_version_position_gix; Type: INDEX; Schema: public; Owner: postgres -- @@ -730,7 +571,6 @@ CREATE INDEX content_version_position_gix ON public.content_version_position USI -- --- TOC entry 4323 (class 1259 OID 16552) -- Name: contents_is_public_index; Type: INDEX; Schema: public; Owner: kabano -- @@ -738,7 +578,6 @@ CREATE INDEX contents_is_public_index ON public.contents USING btree (is_public) -- --- TOC entry 4313 (class 1259 OID 16553) -- Name: fki_content_contributors_content_fkey; Type: INDEX; Schema: public; Owner: kabano -- @@ -746,7 +585,6 @@ CREATE INDEX fki_content_contributors_content_fkey ON public.content_contributor -- --- TOC entry 4314 (class 1259 OID 16554) -- Name: fki_content_contributors_contributor_fkey; Type: INDEX; Schema: public; Owner: kabano -- @@ -754,7 +592,6 @@ CREATE INDEX fki_content_contributors_contributor_fkey ON public.content_contrib -- --- TOC entry 4340 (class 1259 OID 16557) -- Name: users_is_archive_index; Type: INDEX; Schema: public; Owner: kabano -- @@ -762,7 +599,6 @@ CREATE INDEX users_is_archive_index ON public.users USING btree (is_archive); -- --- TOC entry 4345 (class 1259 OID 16558) -- Name: users_register_date_index; Type: INDEX; Schema: public; Owner: kabano -- @@ -770,7 +606,6 @@ CREATE INDEX users_register_date_index ON public.users USING btree (register_dat -- --- TOC entry 4351 (class 2606 OID 16483) -- Name: content_comments content_comments_author_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kabano -- @@ -779,7 +614,6 @@ ALTER TABLE ONLY public.content_comments -- --- TOC entry 4352 (class 2606 OID 16488) -- Name: content_comments content_comments_content_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kabano -- @@ -788,7 +622,6 @@ ALTER TABLE ONLY public.content_comments -- --- TOC entry 4353 (class 2606 OID 16493) -- Name: content_comments content_comments_locale_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kabano -- @@ -797,7 +630,6 @@ ALTER TABLE ONLY public.content_comments -- --- TOC entry 4354 (class 2606 OID 16498) -- Name: content_contributors content_contributors_content_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kabano -- @@ -806,7 +638,6 @@ ALTER TABLE ONLY public.content_contributors -- --- TOC entry 4355 (class 2606 OID 16503) -- Name: content_contributors content_contributors_contributor_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kabano -- @@ -815,7 +646,6 @@ ALTER TABLE ONLY public.content_contributors -- --- TOC entry 4356 (class 2606 OID 16508) -- Name: content_locales content_locales_author; Type: FK CONSTRAINT; Schema: public; Owner: kabano -- @@ -824,7 +654,6 @@ ALTER TABLE ONLY public.content_locales -- --- TOC entry 4357 (class 2606 OID 16513) -- Name: content_locales content_locales_content; Type: FK CONSTRAINT; Schema: public; Owner: kabano -- @@ -833,7 +662,6 @@ ALTER TABLE ONLY public.content_locales -- --- TOC entry 4358 (class 2606 OID 16518) -- Name: content_locales content_locales_locale; Type: FK CONSTRAINT; Schema: public; Owner: kabano -- @@ -842,7 +670,6 @@ ALTER TABLE ONLY public.content_locales -- --- TOC entry 4361 (class 2606 OID 17907) -- Name: content_version_position content_version_position_content_version_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres -- @@ -851,7 +678,6 @@ ALTER TABLE ONLY public.content_version_position -- --- TOC entry 4359 (class 2606 OID 16523) -- Name: content_versions content_versions_locale; Type: FK CONSTRAINT; Schema: public; Owner: kabano -- @@ -860,7 +686,6 @@ ALTER TABLE ONLY public.content_versions -- --- TOC entry 4360 (class 2606 OID 16568) -- Name: users users_locale_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kabano -- @@ -869,8 +694,6 @@ ALTER TABLE ONLY public.users -- --- TOC entry 4520 (class 0 OID 0) --- Dependencies: 6 -- Name: SCHEMA public; Type: ACL; Schema: -; Owner: postgres -- @@ -878,17 +701,6 @@ REVOKE USAGE ON SCHEMA public FROM PUBLIC; GRANT ALL ON SCHEMA public TO PUBLIC; --- Completed on 2026-01-18 13:24:51 CET - -- -- PostgreSQL database dump complete -- - -\unrestrict bSLw7Pr4TIr8dQjZ18Ar1YjCDA44ZzM9Sih1yiKYfw4huFAwIekfsvVnECWSWT0 - --- Completed on 2026-01-18 13:24:51 CET - --- --- PostgreSQL database cluster dump complete --- -