I have a custom field of type Integer
in an entity, but unfortunatly, i need to change it to BigInt
, is there an API function or a possibility of creating a migration to perform this ?
Bonus question: If not, how to delete an extended field ?
Thanks!
You can do it in a schema migration like that:
use Doctrine\DBAL\Types\Type;
//...
$schema
->getTable('your_entity_table_name')
->changeColumn('your_column_name', ['type' => Type::getType('bigint')]);