fix
This commit is contained in:
@@ -123,6 +123,10 @@ var schema = []string{
|
||||
id {ID}, owner_id BIGINT NOT NULL REFERENCES players(id),
|
||||
status TEXT NOT NULL, program {BLOB}, uplink {BLOB}, downlink {BLOB},
|
||||
downlink_day BIGINT NOT NULL DEFAULT -1)`,
|
||||
`CREATE TABLE IF NOT EXISTS code_slots (
|
||||
player_id BIGINT NOT NULL REFERENCES players(id), slot INTEGER NOT NULL,
|
||||
name TEXT NOT NULL, source TEXT NOT NULL, updated_at TEXT NOT NULL,
|
||||
PRIMARY KEY (player_id, slot))`,
|
||||
`CREATE INDEX IF NOT EXISTS ships_owner ON ships(owner_id)`,
|
||||
`CREATE INDEX IF NOT EXISTS ships_status ON ships(status)`,
|
||||
`CREATE TABLE IF NOT EXISTS snapshots (
|
||||
|
||||
Reference in New Issue
Block a user