Merge branch 'develop' into feature/phpstan

This commit is contained in:
slawkens
2024-02-01 20:48:02 +01:00
3 changed files with 5 additions and 10 deletions

View File

@@ -134,6 +134,11 @@ $ots = POT::getInstance();
$eloquentConnection = null;
require_once SYSTEM . 'database.php';
// verify myaac tables exists in database
if(!defined('MYAAC_INSTALL') && !$db->hasTable('myaac_account_actions')) {
throw new RuntimeException('Seems that the table myaac_account_actions of MyAAC doesn\'t exist in the database. This is a fatal error. You can try to reinstall MyAAC by visiting ' . BASE_URL . 'install');
}
// execute migrations
require SYSTEM . 'migrate.php';