Added missing sessions table
This commit is contained in:
parent
fc9ad06afb
commit
a704140a56
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue