mirror of
https://github.com/iv-org/invidious.git
synced 2025-05-02 14:36:23 -04:00
Make migrations (mostly) idempotent.
This commit is contained in:
parent
c7e65ce795
commit
ffa9e5dfab
10 changed files with 33 additions and 33 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
-- DROP TABLE public.channels;
|
||||
|
||||
CREATE TABLE public.channels
|
||||
CREATE TABLE IF NOT EXISTS public.channels
|
||||
(
|
||||
id text NOT NULL,
|
||||
author text,
|
||||
|
@ -12,13 +12,13 @@ CREATE TABLE public.channels
|
|||
CONSTRAINT channels_id_key UNIQUE (id)
|
||||
);
|
||||
|
||||
GRANT ALL ON TABLE public.channels TO kemal;
|
||||
GRANT ALL ON TABLE public.channels TO current_user;
|
||||
|
||||
-- Index: public.channels_id_idx
|
||||
|
||||
-- DROP INDEX public.channels_id_idx;
|
||||
|
||||
CREATE INDEX channels_id_idx
|
||||
CREATE INDEX IF NOT EXISTS channels_id_idx
|
||||
ON public.channels
|
||||
USING btree
|
||||
(id COLLATE pg_catalog."default");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue