first docker container version

This commit is contained in:
z1glr
2025-02-04 11:46:56 +01:00
parent da06038263
commit 3f9a190795
13 changed files with 125 additions and 281 deletions

View File

@@ -22,8 +22,8 @@ func init() {
DB.MustExec("PRAGMA foreign_keys = ON")
// create the tables if they don't exist
if dbSetupInstructions, err := os.ReadFile("setup.sql"); err != nil {
panic("can't read database-setup")
if dbSetupInstructions, err := os.ReadFile("tables.sql"); err != nil {
panic("can't read database-tables-setup")
} else {
DB.MustExec(string(dbSetupInstructions))