Fix migration

pull/161/head
Chocobozzz 2017-12-19 13:44:00 +01:00
parent 393b5ab85e
commit f9fcb010b0
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 9 deletions

View File

@ -39,15 +39,7 @@ async function up (utils: {
"createdAt" timestamp with time zone NOT NULL, "createdAt" timestamp with time zone NOT NULL,
"updatedAt" timestamp with time zone NOT NULL "updatedAt" timestamp with time zone NOT NULL
);`, );`,
` `CREATE SEQUENCE actor_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1`,
CREATE SEQUENCE actor_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1
`,
`ALTER SEQUENCE actor_id_seq OWNED BY actor.id`, `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 ALTER COLUMN id SET DEFAULT nextval('actor_id_seq'::regclass)`,
`ALTER TABLE ONLY actor ADD CONSTRAINT actor_pkey PRIMARY KEY (id);`, `ALTER TABLE ONLY actor ADD CONSTRAINT actor_pkey PRIMARY KEY (id);`,