fix: do not create table if already exists
This commit is contained in:
parent
9e713146e1
commit
a98b765b4b
|
@ -26,7 +26,7 @@ function initDatabase() {
|
|||
throw new Error("Database is not connected");
|
||||
}
|
||||
|
||||
db.exec("CREATE TABLE mods ( \
|
||||
db.exec("CREATE TABLE IF NOT EXISTS mods ( \
|
||||
Name tinytext PRIMARY KEY, \
|
||||
DisplayName tinytext, \
|
||||
Author tinytext FOREIGN KEY,\
|
||||
|
|
Loading…
Reference in a new issue