Moved db and migrations management to umzug.

This commit is contained in:
Fabio Manganiello 2025-03-07 22:07:59 +01:00
parent 55083bb1b3
commit 2dd6c9f6b4
Signed by: blacklight
GPG key ID: D90FBA7F76362774
20 changed files with 832 additions and 110 deletions

View file

@ -18,8 +18,11 @@ class App {
}: any) {
useGlobals();
$db.sync().then(() => {
$repos.userRoles.init();
$repos.users.syncAdminUser();
$repos.userRoles.init().then(() => {
$repos.users.syncAdminUser().then(() => {
console.log(' The database is ready');
})
})
})
this.app = app;