mirror of
https://github.com/thelounge/thelounge
synced 2024-11-15 00:37:13 +00:00
extract migrations
This commit is contained in:
parent
5e1cbe32f9
commit
f04a06682d
1 changed files with 5 additions and 0 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in a new issue