Add SetType column to ExpansionSet table

This commit is contained in:
The Magician 2024-04-19 09:12:42 +01:00
parent f09472a505
commit 4805299fa7
2 changed files with 4 additions and 3 deletions

View File

@ -186,7 +186,8 @@ func createSetTable(db *sql.DB) {
Id INT AUTO_INCREMENT PRIMARY KEY,
SetCode VARCHAR(4) NOT NULL,
Name VARCHAR(40) NOT NULL,
Digital BOOLEAN NOT NULL
Digital BOOLEAN NOT NULL,
SetType VARCHAR(20) NOT NULL
);`
_, err := db.Exec(query)

View File

@ -36,7 +36,7 @@ CREATE TABLE IF NOT EXISTS Gamepiece (
OracleText VARCHAR(800) NOT NULL,
Power VARCHAR(5) NULL,
Toughness VARCHAR(5) NULL,
ReserveList BOOLEAN NOT NULL,
ReserveList BOOLEAN NOT NULL
);
CREATE TABLE IF NOT EXISTS Color (
@ -133,5 +133,5 @@ CREATE TABLE IF NOT EXISTS CardPrinting (
DigitalOnly BOOLEAN NOT NULL,
Variation BOOLEAN NOT NULL,
VariationId VARCHAR(36) NULL,
SecurityStamp ENUM("oval", "triangle", "acorn", "circle", "arena", "heart") NULL,
SecurityStamp ENUM("oval", "triangle", "acorn", "circle", "arena", "heart") NULL
);