Added missing sessions table

This commit is contained in:
Jan Zípek 2022-08-21 22:26:54 +02:00
parent fc9ad06afb
commit a704140a56
Signed by: kamen
GPG Key ID: A17882625B33AC31
1 changed files with 10 additions and 0 deletions

View File

@ -30,5 +30,15 @@ func initializeDb(databaseUrl string) *sql.DB {
panic(err)
}
_, err = db.Exec(`CREATE TABLE IF NOT EXISTS sessions (
id TEXT NOT NULL,
expires_at INTEGER NOT NULL,
PRIMARY KEY (id)
);`)
if err != nil {
panic(err)
}
return db
}