Avoid clients of sqlTiddlerStore having to call updateAdminWIki() explicitly

This commit is contained in:
Jeremy Ruston 2024-01-23 12:53:06 +00:00
parent c1312100aa
commit 239ace0c07
2 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,6 @@ exports.startup = function() {
$tw.sqlTiddlerStore = new SqlTiddlerStore({
databasePath: databasePath
});
$tw.sqlTiddlerStore.updateAdminWiki();
// Create bags and recipes
$tw.sqlTiddlerStore.createBag("bag-alpha");
$tw.sqlTiddlerStore.createBag("bag-beta");

View File

@ -31,6 +31,7 @@ function SqlTiddlerStore(options) {
databasePath: this.databasePath
});
this.sqlTiddlerDatabase.createTables();
this.updateAdminWiki();
}
SqlTiddlerStore.prototype.close = function() {