fix: do not create table if already exists

This commit is contained in:
Gu://em_ 2025-03-29 12:47:10 +01:00
parent 9e713146e1
commit a98b765b4b

View file

@ -26,7 +26,7 @@ function initDatabase() {
throw new Error("Database is not connected"); throw new Error("Database is not connected");
} }
db.exec("CREATE TABLE mods ( \ db.exec("CREATE TABLE IF NOT EXISTS mods ( \
Name tinytext PRIMARY KEY, \ Name tinytext PRIMARY KEY, \
DisplayName tinytext, \ DisplayName tinytext, \
Author tinytext FOREIGN KEY,\ Author tinytext FOREIGN KEY,\