Add SetType column to ExpansionSet table
This commit is contained in:
parent
f09472a505
commit
4805299fa7
|
@ -186,7 +186,8 @@ func createSetTable(db *sql.DB) {
|
||||||
Id INT AUTO_INCREMENT PRIMARY KEY,
|
Id INT AUTO_INCREMENT PRIMARY KEY,
|
||||||
SetCode VARCHAR(4) NOT NULL,
|
SetCode VARCHAR(4) NOT NULL,
|
||||||
Name VARCHAR(40) NOT NULL,
|
Name VARCHAR(40) NOT NULL,
|
||||||
Digital BOOLEAN NOT NULL
|
Digital BOOLEAN NOT NULL,
|
||||||
|
SetType VARCHAR(20) NOT NULL
|
||||||
);`
|
);`
|
||||||
|
|
||||||
_, err := db.Exec(query)
|
_, err := db.Exec(query)
|
||||||
|
|
|
@ -36,7 +36,7 @@ CREATE TABLE IF NOT EXISTS Gamepiece (
|
||||||
OracleText VARCHAR(800) NOT NULL,
|
OracleText VARCHAR(800) NOT NULL,
|
||||||
Power VARCHAR(5) NULL,
|
Power VARCHAR(5) NULL,
|
||||||
Toughness VARCHAR(5) NULL,
|
Toughness VARCHAR(5) NULL,
|
||||||
ReserveList BOOLEAN NOT NULL,
|
ReserveList BOOLEAN NOT NULL
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS Color (
|
CREATE TABLE IF NOT EXISTS Color (
|
||||||
|
@ -133,5 +133,5 @@ CREATE TABLE IF NOT EXISTS CardPrinting (
|
||||||
DigitalOnly BOOLEAN NOT NULL,
|
DigitalOnly BOOLEAN NOT NULL,
|
||||||
Variation BOOLEAN NOT NULL,
|
Variation BOOLEAN NOT NULL,
|
||||||
VariationId VARCHAR(36) NULL,
|
VariationId VARCHAR(36) NULL,
|
||||||
SecurityStamp ENUM("oval", "triangle", "acorn", "circle", "arena", "heart") NULL,
|
SecurityStamp ENUM("oval", "triangle", "acorn", "circle", "arena", "heart") NULL
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue