Skip to content

Instantly share code, notes, and snippets.

@doctrinebot
Created December 13, 2015 18:53
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 doctrinebot/08b7125e315cae2bea35 to your computer and use it in GitHub Desktop.
Save doctrinebot/08b7125e315cae2bea35 to your computer and use it in GitHub Desktop.
Attachments to Doctrine Jira Issue DBAL-91 - https://github.com/doctrine/dbal/issues/2152
create table something
( id integer CONSTRAINT id_something PRIMARY KEY NOT NULL
,input integer
);
ALTER TABLE something
ADD CONSTRAINT something_input
FOREIGN KEY( input ) REFERENCES something ON UPDATE CASCADE;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment