- Now checking supportAlterColumnAction in database migration from adapter
This commit is contained in:
parent
3de4b78a0b
commit
2fd9331c15
@ -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()
|
||||||
|
@ -7,12 +7,12 @@ use Notes\Common\ReflectedProperty;
|
|||||||
class Definition
|
class Definition
|
||||||
{
|
{
|
||||||
public function __construct(
|
public function __construct(
|
||||||
public string $entity,
|
public string $entity,
|
||||||
public string|null $field = null,
|
public string|null $field = null,
|
||||||
public array|null|ReflectedProperty $definition = null,
|
public array|null|ReflectedProperty $definition = null,
|
||||||
public null|Modifier|array $modifier = null,
|
public null|Modifier|array $modifier = null,
|
||||||
public null|Definition $previous = null,
|
public null|Definition $previous = null,
|
||||||
public null|string $action = null,
|
public null|string $action = null,
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
public function toArray() : array
|
public function toArray() : array
|
||||||
|
Loading…
x
Reference in New Issue
Block a user