mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-12-23 02:26:36 +00:00
Implement migration for PostgreSQL
This commit is contained in:
parent
e3609f7863
commit
22b03710be
2 changed files with 6 additions and 2 deletions
|
@ -1 +1,3 @@
|
|||
-- This file should undo anything in `up.sql`
|
||||
ALTER TABLE users DROP CONSTRAINT users_fqn;
|
||||
ALTER TABLE blogs DROP CONSTRAINT blogs_actor_id;
|
||||
ALTER TABLE blogs DROP CONSTRAINT blogs_fqn;
|
||||
|
|
|
@ -1 +1,3 @@
|
|||
-- Your SQL goes here
|
||||
ALTER TABLE users ADD CONSTRAINT users_fqn UNIQUE (fqn);
|
||||
ALTER TABLE blogs ADD CONSTRAINT blogs_actor_id UNIQUE (actor_id);
|
||||
ALTER TABLE blogs ADD CONSTRAINT blogs_fqn UNIQUE (fqn);
|
||||
|
|
Loading…
Reference in a new issue