Thalassicus
Bytes and Nibblers
What's the proper way to set up a foreign key? This didn't work...
Code:
CREATE TABLE IF NOT EXISTS Building_PrereqBuildingClassesPercentage (
FOREIGN KEY(BuildingType) text REFERENCES Buildings(Type),
FOREIGN KEY(BuildingClassType) text REFERENCES BuildingClasses(Type),
PercentBuildingNeeded integer default 0
);