From 405ef9edc569a221f3379971e2e5a85795dead95 Mon Sep 17 00:00:00 2001 From: The Magician Date: Wed, 29 May 2024 22:03:40 +0100 Subject: [PATCH] Create CardStorageLocation table --- sevenkeys/database/sql/createdb.sql | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/sevenkeys/database/sql/createdb.sql b/sevenkeys/database/sql/createdb.sql index b319e66..f61368e 100644 --- a/sevenkeys/database/sql/createdb.sql +++ b/sevenkeys/database/sql/createdb.sql @@ -25,12 +25,11 @@ CREATE TABLE IF NOT EXISTS CardPrinting ( Language VARCHAR(3) NOT NULL ); --- CREATE TABLE IF NOT EXISTS CardStorageLocation ( - -- Id INT AUTO_INCREMENT PRIMARY KEY, - -- CardPrintingId VARCHAR(36) NOT NULL, - -- FOREIGN KEY (CardPrintingId) REFERENCES CardPrinting(Id), - -- IsFoil BOOLEAN NOT NULL, - -- StorageBox VARCHAR(20) NOT NULL, - -- Source VARCHAR(100) NULL, - -- Position INT NOT NULL --- ); +CREATE TABLE IF NOT EXISTS CardStorageLocation ( + Id INT AUTO_INCREMENT PRIMARY KEY, + CardPrintingId INT NOT NULL, + FOREIGN KEY (CardPrintingId) REFERENCES CardPrinting(Id), + StorageBox VARCHAR(20) NOT NULL, + Position INT NOT NULL, + Source VARCHAR(100) NULL +);