Skip to content

Instantly share code, notes, and snippets.

@qcom
Created August 14, 2014 17:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qcom/411f828baa1ca25bef2b to your computer and use it in GitHub Desktop.
Save qcom/411f828baa1ca25bef2b to your computer and use it in GitHub Desktop.
CREATE TABLE IF NOT EXISTS items_industries (
item integer REFERENCES items(id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED,
industry integer REFERENCES industries(id) ON DELETE CASCADE
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment