This commit is contained in:
Up 2024-05-07 23:03:09 +02:00
parent 1c659d4fd2
commit 409c39e19a
No known key found for this signature in database
GPG Key ID: 3B75CD7439FEB388

View File

@ -43,7 +43,7 @@ func Init(username, password, protocol, address, database string) error {
panic(err)
}
tx.Exec("CREATE TABLE IF NOT EXISTS systemSaveData (uuid BINARY(16) PRIMARY KEY, data BLOB, timestamp TIMESTAMP)")
tx.Exec("CREATE TABLE IF NOT EXISTS sessionSaveData (uuid BINARY(16), slot TINYINT, data BLOB, timestamp TIMESTAMP PRIMARY KEY (uuid, slot))")
tx.Exec("CREATE TABLE IF NOT EXISTS sessionSaveData (uuid BINARY(16), slot TINYINT, data BLOB, timestamp TIMESTAMP, PRIMARY KEY (uuid, slot))")
err = tx.Commit()
if err != nil {
panic(err)