} } public function testUpdateAddDefault(): void
{ $column =
$this->
getColumnInfo('user_access_key', 'write_access'
);
static::
assertIsArray($column);
static::
assertNull($column['COLUMN_DEFAULT'
]);
$migration =
new Migration1671003201RemoveDeprecatedColumns();
$migration->
update($this->connection
);
// can execute two times
$migration->
update($this->connection
);
$column =
$this->
getColumnInfo('user_access_key', 'write_access'
);
static::
assertIsArray($column);
static::
assertEquals('0',
$column['COLUMN_DEFAULT'
]);
// clean up state
$migration->
updateDestructive($this->connection
);
}