- Minor bugfixes dones
This commit is contained in:
1 parent
bf1bec644b
commit
eda0ee6f33
3 files changed
+5
-7
No files matched your search
@@ -25,7 +25,8 @@ class DatabaseMigration implements FormInterface
|
||||
$context->tableExist = [];
|
||||
|
||||
foreach($this->migration->entities as $entity => $table) {
|
||||
$adapter = $entity::resolveEntity()->sqlAdapter()->adapter();
|
||||
$connection = $entity::resolveEntity()->sqlAdapter();
|
||||
$adapter = $connection->adapter();
|
||||
|
||||
$tableName = $table->tableName();
|
||||
$databaseName = $table->databaseName();
|
||||
@@ -34,7 +35,7 @@ class DatabaseMigration implements FormInterface
|
||||
continue;
|
||||
}
|
||||
|
||||
$tableEntity = $adapter->schemaTable($databaseName, $tableName);
|
||||
$tableEntity = $adapter->schemaTable($connection, $databaseName, $tableName);
|
||||
|
||||
if ( $tableEntity ) {
|
||||
foreach($tableEntity->columns as $field => $definition) {
|
||||
|
||||
Reference in new issue
Block a user