- Now checking supportAlterColumnAction in database migration from adapter
This commit is contained in:
1 parent
3de4b78a0b
commit
2fd9331c15
1 file changed
+1
-1
@@ -71,7 +71,7 @@ class Migrate implements FormInterface
|
|||||||
$def->action = "change";
|
$def->action = "change";
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($def->action) {
|
if ($def->action && $adapter->supportAlterColumnAction($def->action)) {
|
||||||
$def->modifier = new Lib\Database\Modifier(
|
$def->modifier = new Lib\Database\Modifier(
|
||||||
type: Lib\Database\ModifierTypeEnum::Alter,
|
type: Lib\Database\ModifierTypeEnum::Alter,
|
||||||
query: $entity::repository()
|
query: $entity::repository()
|
||||||
|
|||||||
Reference in new issue
Block a user