1
0
mirror of https://github.com/fspc/Yellow-Bike-Database.git synced 2025-02-23 01:03:23 -05:00

Made id a fk to contact_id in contacts.

This commit is contained in:
Jonathan Rosenbaum 2015-03-03 10:59:14 +00:00
parent cf3cfe8838
commit ec69322128

View File

@ -204,3 +204,5 @@ CREATE TABLE IF NOT EXISTS options (
option_value text NOT NULL,
PRIMARY KEY (option_name)
);
ALTER TABLE options ADD CONSTRAINT id FOREIGN KEY (id) REFERENCES contacts (contact_id) ON UPDATE CASCADE;