Make migrations (mostly) idempotent.

This commit is contained in:
Andre Borie 2021-01-17 01:44:31 +00:00
parent c7e65ce795
commit ffa9e5dfab
10 changed files with 33 additions and 33 deletions

View file

@ -2,11 +2,11 @@
-- DROP TABLE public.annotations;
CREATE TABLE public.annotations
CREATE TABLE IF NOT EXISTS public.annotations
(
id text NOT NULL,
annotations xml,
CONSTRAINT annotations_id_key UNIQUE (id)
);
GRANT ALL ON TABLE public.annotations TO kemal;
GRANT ALL ON TABLE public.annotations TO current_user;