mirror of
https://github.com/fspc/Yellow-Bike-Database.git
synced 2025-02-23 09:13:23 -05:00
Made id a fk to contact_id in contacts.
This commit is contained in:
parent
cf3cfe8838
commit
ec69322128
@ -204,3 +204,5 @@ CREATE TABLE IF NOT EXISTS options (
|
|||||||
option_value text NOT NULL,
|
option_value text NOT NULL,
|
||||||
PRIMARY KEY (option_name)
|
PRIMARY KEY (option_name)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
ALTER TABLE options ADD CONSTRAINT id FOREIGN KEY (id) REFERENCES contacts (contact_id) ON UPDATE CASCADE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user