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,7 +2,7 @@
-- DROP TABLE public.playlist_videos;
CREATE TABLE playlist_videos
CREATE TABLE IF NOT EXISTS playlist_videos
(
title text,
id text,
@@ -16,4 +16,4 @@ CREATE TABLE playlist_videos
PRIMARY KEY (index,plid)
);
GRANT ALL ON TABLE public.playlist_videos TO kemal;
GRANT ALL ON TABLE public.playlist_videos TO current_user;