extract migrations

This commit is contained in:
Reto Brunner 2022-08-29 07:47:33 +02:00 committed by Reto Brunner
parent 5e1cbe32f9
commit f04a06682d

View file

@ -62,6 +62,11 @@ class SqliteMessageStorage implements ISqliteMessageStorage {
this.isEnabled = true;
this.database = new sqlite3.Database(sqlitePath);
this.run_migrations()
}
private run_migrations() {
this.database.serialize(() => {
schema.forEach((line) => this.run(line));