Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for foreign keys #97

Open
RichardBradley opened this issue May 3, 2013 · 1 comment
Open

Add support for foreign keys #97

RichardBradley opened this issue May 3, 2013 · 1 comment

Comments

@RichardBradley
Copy link

As far as I can see, without using execute, there is no support for foreign keys.

@djung-fodessa
Copy link

I'd like this also. It isn't too pretty to be writing:

$this->execute("ALTER TABLE products ADD CONSTRAINT fk_products_customers1 FOREIGN KEY(id_customer_merchant)"
                ." REFERENCES customers(id_customer) ON DELETE NO ACTION ON UPDATE NO ACTION");

I'll add it if I have time, though that may never happen unfortunately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants