Skip to content

Instantly share code, notes, and snippets.

@rileyrg
Created June 9, 2017 18:39
Show Gist options
  • Save rileyrg/5767a0b3e797351950f2c10054beb4ee to your computer and use it in GitHub Desktop.
Save rileyrg/5767a0b3e797351950f2c10054beb4ee to your computer and use it in GitHub Desktop.
ALTER TABLE person DROP FOREIGN KEY FK_34DCD1767E3C61F9;
ALTER TABLE person ADD CONSTRAINT FK_34DCD1767E3C61F9 FOREIGN KEY (owner_id) REFERENCES user (id)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment