Lokale PostgreSQL-Kopie: Dump nach Migration 0006 aktualisiert

This commit is contained in:
2026-07-18 08:15:20 +02:00
parent 51fdb93e97
commit a80cd5bd12
2 changed files with 15 additions and 11 deletions
+9 -5
View File
@@ -22,9 +22,6 @@ SET row_security = off;
-- Name: public; Type: SCHEMA; Schema: -; Owner: -
--
-- Das "public"-Schema existiert im offiziellen postgres-Image bereits;
-- CREATE SCHEMA würde dort mit ON_ERROR_STOP=1 das komplette Init-Skript
-- abbrechen.
CREATE SCHEMA IF NOT EXISTS public;
@@ -191,7 +188,7 @@ CREATE TABLE public.profiles (
--
CREATE TABLE public.sections (
key text NOT NULL,
key text DEFAULT (gen_random_uuid())::text NOT NULL,
label text NOT NULL,
time_range text NOT NULL,
sort integer NOT NULL,
@@ -320,7 +317,7 @@ ALTER TABLE ONLY public.menu_entries
--
ALTER TABLE ONLY public.menu_entries
ADD CONSTRAINT menu_entries_section_key_fkey FOREIGN KEY (section_key) REFERENCES public.sections(key);
ADD CONSTRAINT menu_entries_section_key_fkey FOREIGN KEY (section_key) REFERENCES public.sections(key) ON DELETE CASCADE;
--
@@ -471,6 +468,13 @@ ALTER TABLE public.sections ENABLE ROW LEVEL SECURITY;
CREATE POLICY sections_public_read ON public.sections FOR SELECT TO authenticated, anon USING (true);
--
-- Name: sections sections_staff_write; Type: POLICY; Schema: public; Owner: -
--
CREATE POLICY sections_staff_write ON public.sections TO authenticated USING ((public.app_role() = ANY (ARRAY['staff'::text, 'admin'::text]))) WITH CHECK ((public.app_role() = ANY (ARRAY['staff'::text, 'admin'::text])));
--
-- Name: settings; Type: ROW SECURITY; Schema: public; Owner: -
--
+6 -6
View File
@@ -2,7 +2,7 @@
-- PostgreSQL database dump
--
\restrict m2Vnc4kNXrHeKWS4dSX5SqMU5nUOxMfipXDVyLuYabYYzEbAHutmaRS8m10Dsdh
\restrict y6aLgjBTAX9fiLwtkHEGaN6baJ1dCr2Yjdb6nmrL5LPA6jgf5Ml1Mm0EpXO56Kk
-- Dumped from database version 17.6
-- Dumped by pg_dump version 17.10
@@ -120,10 +120,10 @@ ALTER TABLE public.dishes ENABLE TRIGGER ALL;
ALTER TABLE public.sections DISABLE TRIGGER ALL;
COPY public.sections (key, label, time_range, sort, label_en, label_pl) FROM stdin;
brotzeit Brotzeit 09:00 - 10:00 1 Breakfast Śniadanie
mittagessen Mittagessen 11:30 - 13:30 2 Lunch Obiad
mittagessen_veg Mittagessen vegetarisch 11:30 - 13:30 3 Lunch (vegetarian) Obiad (wegetariański)
suppe Suppe 11:30 - 13:30 4 Soup Zupa
mittagessen_veg Mittagessen vegetarisch 11:30 - 13:30 4 Lunch (vegetarian) Obiad (wegetariański)
mittagessen Mittagessen 11:30 - 13:30 3 Lunch Obiad
brotzeit Brotzeit 09:00 - 10:00 2 Breakfast Śniadanie
suppe Suppe 11:30 - 13:30 6 Soup Zupa
\.
@@ -208,5 +208,5 @@ ALTER TABLE public.settings ENABLE TRIGGER ALL;
-- PostgreSQL database dump complete
--
\unrestrict m2Vnc4kNXrHeKWS4dSX5SqMU5nUOxMfipXDVyLuYabYYzEbAHutmaRS8m10Dsdh
\unrestrict y6aLgjBTAX9fiLwtkHEGaN6baJ1dCr2Yjdb6nmrL5LPA6jgf5Ml1Mm0EpXO56Kk