Lokale PostgreSQL-Kopie: Dump nach Migration 0006 aktualisiert
This commit is contained in:
@@ -22,9 +22,6 @@ SET row_security = off;
|
|||||||
-- Name: public; Type: SCHEMA; Schema: -; Owner: -
|
-- 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;
|
CREATE SCHEMA IF NOT EXISTS public;
|
||||||
|
|
||||||
|
|
||||||
@@ -191,7 +188,7 @@ CREATE TABLE public.profiles (
|
|||||||
--
|
--
|
||||||
|
|
||||||
CREATE TABLE public.sections (
|
CREATE TABLE public.sections (
|
||||||
key text NOT NULL,
|
key text DEFAULT (gen_random_uuid())::text NOT NULL,
|
||||||
label text NOT NULL,
|
label text NOT NULL,
|
||||||
time_range text NOT NULL,
|
time_range text NOT NULL,
|
||||||
sort integer NOT NULL,
|
sort integer NOT NULL,
|
||||||
@@ -320,7 +317,7 @@ ALTER TABLE ONLY public.menu_entries
|
|||||||
--
|
--
|
||||||
|
|
||||||
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);
|
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: -
|
-- Name: settings; Type: ROW SECURITY; Schema: public; Owner: -
|
||||||
--
|
--
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
-- PostgreSQL database dump
|
-- PostgreSQL database dump
|
||||||
--
|
--
|
||||||
|
|
||||||
\restrict m2Vnc4kNXrHeKWS4dSX5SqMU5nUOxMfipXDVyLuYabYYzEbAHutmaRS8m10Dsdh
|
\restrict y6aLgjBTAX9fiLwtkHEGaN6baJ1dCr2Yjdb6nmrL5LPA6jgf5Ml1Mm0EpXO56Kk
|
||||||
|
|
||||||
-- Dumped from database version 17.6
|
-- Dumped from database version 17.6
|
||||||
-- Dumped by pg_dump version 17.10
|
-- 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;
|
ALTER TABLE public.sections DISABLE TRIGGER ALL;
|
||||||
|
|
||||||
COPY public.sections (key, label, time_range, sort, label_en, label_pl) FROM stdin;
|
COPY public.sections (key, label, time_range, sort, label_en, label_pl) FROM stdin;
|
||||||
brotzeit Brotzeit 09:00 - 10:00 1 Breakfast Śniadanie
|
mittagessen_veg Mittagessen vegetarisch 11:30 - 13:30 4 Lunch (vegetarian) Obiad (wegetariański)
|
||||||
mittagessen Mittagessen 11:30 - 13:30 2 Lunch Obiad
|
mittagessen Mittagessen 11:30 - 13:30 3 Lunch Obiad
|
||||||
mittagessen_veg Mittagessen vegetarisch 11:30 - 13:30 3 Lunch (vegetarian) Obiad (wegetariański)
|
brotzeit Brotzeit 09:00 - 10:00 2 Breakfast Śniadanie
|
||||||
suppe Suppe 11:30 - 13:30 4 Soup Zupa
|
suppe Suppe 11:30 - 13:30 6 Soup Zupa
|
||||||
\.
|
\.
|
||||||
|
|
||||||
|
|
||||||
@@ -208,5 +208,5 @@ ALTER TABLE public.settings ENABLE TRIGGER ALL;
|
|||||||
-- PostgreSQL database dump complete
|
-- PostgreSQL database dump complete
|
||||||
--
|
--
|
||||||
|
|
||||||
\unrestrict m2Vnc4kNXrHeKWS4dSX5SqMU5nUOxMfipXDVyLuYabYYzEbAHutmaRS8m10Dsdh
|
\unrestrict y6aLgjBTAX9fiLwtkHEGaN6baJ1dCr2Yjdb6nmrL5LPA6jgf5Ml1Mm0EpXO56Kk
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user