First release
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
SET FOREIGN_KEY_CHECKS=0;
|
||||
UPDATE TABLE jrtables
|
||||
DROP COLUMN owner_id
|
||||
DROP COLUMN fk_owner_id;
|
||||
SET FOREIGN_KEY_CHECKS=1;
|
||||
@@ -0,0 +1 @@
|
||||
-- This file should undo anything in `up.sql`
|
||||
@@ -0,0 +1,10 @@
|
||||
SET FOREIGN_KEY_CHECKS=0;
|
||||
ALTER TABLE jrtables
|
||||
ADD owner_id INTEGER NOT NULL;
|
||||
ALTER TABLE jrtables
|
||||
ADD CONSTRAINT fk_owner_id
|
||||
FOREIGN KEY (owner_id) REFERENCES users(id)
|
||||
ON DELETE CASCADE
|
||||
ON UPDATE CASCADE;
|
||||
SET FOREIGN_KEY_CHECKS=1;
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
-- Your SQL goes here
|
||||
Reference in New Issue
Block a user