Make migrations (mostly) idempotent.

This commit is contained in:
Andre Borie committed 2021-01-17 14:20:34 +00:00
1 parent c7e65ce795
commit ffa9e5dfab
10 files changed
+33 -33

No files matched your search

+2 -2
View File
@@ -13,7 +13,7 @@ CREATE TYPE public.privacy AS ENUM
-- DROP TABLE public.playlists;
CREATE TABLE public.playlists
CREATE TABLE IF NOT EXISTS public.playlists
(
title text,
id text primary key,
@@ -26,4 +26,4 @@ CREATE TABLE public.playlists
index int8[]
);
GRANT ALL ON public.playlists TO kemal;
GRANT ALL ON public.playlists TO current_user;