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

@ -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;