From f9fcb010b03fed60f07b5e09d4dfc8ba2a720741 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 19 Dec 2017 13:44:00 +0100 Subject: [PATCH] Fix migration --- .../migrations/0135-video-channel-actor.ts | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/server/initializers/migrations/0135-video-channel-actor.ts b/server/initializers/migrations/0135-video-channel-actor.ts index 3c5c10ad6..9b5acb338 100644 --- a/server/initializers/migrations/0135-video-channel-actor.ts +++ b/server/initializers/migrations/0135-video-channel-actor.ts @@ -39,15 +39,7 @@ async function up (utils: { "createdAt" timestamp with time zone NOT NULL, "updatedAt" timestamp with time zone NOT NULL );`, - ` - CREATE SEQUENCE actor_id_seq - AS integer - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1 - `, + `CREATE SEQUENCE actor_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1`, `ALTER SEQUENCE actor_id_seq OWNED BY actor.id`, `ALTER TABLE ONLY actor ALTER COLUMN id SET DEFAULT nextval('actor_id_seq'::regclass)`, `ALTER TABLE ONLY actor ADD CONSTRAINT actor_pkey PRIMARY KEY (id);`,