mirror of
https://github.com/owncast/owncast.git
synced 2025-10-29 17:17:35 +08:00
18 lines
328 B
Go
18 lines
328 B
Go
package tables
|
|
|
|
import (
|
|
"database/sql"
|
|
|
|
"github.com/owncast/owncast/utils"
|
|
)
|
|
|
|
func CreateConfigTable(db *sql.DB) {
|
|
createTableSQL := `CREATE TABLE IF NOT EXISTS datastore (
|
|
"key" string NOT NULL PRIMARY KEY,
|
|
"value" BLOB,
|
|
"timestamp" DATE DEFAULT CURRENT_TIMESTAMP NOT NULL
|
|
);`
|
|
|
|
utils.MustExec(createTableSQL, db)
|
|
}
|