Closed iGrog closed 7 months ago
CycleORM: 2.4 CycleMigrations: 4.2
2.4
4.2
Entity:
#[Entity] class MyEntity { #[Column(type: 'binary(16)', name: 'id', primary: true)] private Id $id; }
will be generated as:
$this->table('mytable') ->addColumn('id', 'binary', ['nullable' => false, 'default' => null]) ->setPrimaryKeys(['id']) ->create();
Even if I change binary to binary(16) in the migration, the next cycle:migrate will generate and update to change the column type back to binary without any size.
binary
binary(16)
cycle:migrate
Please allow specifying the size of binary columns.
@msmakouz i think it may be fixed with the size-related attribute in the MySQLColumn
CycleORM:
2.4
CycleMigrations:4.2
Entity:
will be generated as:
Even if I change
binary
tobinary(16)
in the migration, the nextcycle:migrate
will generate and update to change the column type back tobinary
without any size.Please allow specifying the size of binary columns.