Allow SetCode to be five characters

This commit is contained in:
The Magician 2024-04-19 09:19:42 +01:00
parent 85eaa5df0c
commit 34ed8b8751
2 changed files with 2 additions and 2 deletions

View File

@ -184,7 +184,7 @@ func createGamepieceFormatLegalityTable(db *sql.DB) {
func createSetTable(db *sql.DB) { func createSetTable(db *sql.DB) {
query := `CREATE TABLE IF NOT EXISTS ExpansionSet ( query := `CREATE TABLE IF NOT EXISTS ExpansionSet (
Id INT AUTO_INCREMENT PRIMARY KEY, Id INT AUTO_INCREMENT PRIMARY KEY,
SetCode VARCHAR(4) NOT NULL, SetCode VARCHAR(5) 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 SetType VARCHAR(20) NOT NULL

View File

@ -98,7 +98,7 @@ CREATE TABLE IF NOT EXISTS GamepieceFormatLegality (
CREATE TABLE IF NOT EXISTS ExpansionSet ( CREATE TABLE IF NOT EXISTS ExpansionSet (
Id INT AUTO_INCREMENT NOT NULL, Id INT AUTO_INCREMENT NOT NULL,
SetCode VARCHAR(4) NOT NULL, SetCode VARCHAR(5) 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 SetType VARCHAR(20) NOT NULL