mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-10-01 23:25:04 -04:00
Add table existence check in PluginManager before initializing migrations
Signed-off-by: Travis Garrison <travis@chiraqbookstore.com>
This commit is contained in:
1 parent
e3b2359b4d
commit
bdb2ba5b51
1 file changed
+6
-1
@@ -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