Closed pamelafox closed 11 months ago
Noting the schema uses REFERENCES-
REATE TABLE cruisedestinationlink ( destination_id INTEGER NOT NULL, cruise_id INTEGER NOT NULL, PRIMARY KEY (destination_id, cruise_id), FOREIGN KEY(destination_id) REFERENCES destination (id), FOREIGN KEY(cruise_id) REFERENCES cruise (id) )
INFO sqlalchemy.engine.Engine:base.py:1472 [no key 0.00009s] {} INFO sqlalchemy.engine.Engine:base.py:1472 CREATE TABLE inforequest ( id SERIAL NOT NULL, name VARCHAR NOT NULL, email VARCHAR NOT NULL, notes VARCHAR NOT NULL, cruise_id INTEGER, PRIMARY KEY (id), FOREIGN KEY(cruise_id) REFERENCES cruise (id) )
Getting this when running the tests: