mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-07-25 22:27:05 -04:00
Add table existence check in PluginManager before initializing migrations
Signed-off-by: Travis Garrison <travis@chiraqbookstore.com>
This commit is contained in:
@@ -102,8 +102,13 @@ class PluginManager
|
||||
return;
|
||||
}
|
||||
|
||||
$migrationModel = new PluginMigrationModel();
|
||||
$db = Database::connect();
|
||||
|
||||
if (!$db->tableExists('plugin_migrations')) {
|
||||
return;
|
||||
}
|
||||
|
||||
$migrationModel = new PluginMigrationModel();
|
||||
$forge = Database::forge();
|
||||
|
||||
foreach ($this->plugins as $pluginId => $plugin) {
|
||||
|
||||
Reference in New Issue
Block a user