S
S
stepan-neretin72019-04-24 22:34:51
Laravel
stepan-neretin7, 2019-04-24 22:34:51

Why doesn't he want to migrate?

Please tell me why he does not want to migrate
5cc0ba19701cb363004601.png- Cards
5cc0ba22e620d521452310.png--Cities
Migration itself => Tyk
Initial migration => Tyk

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Popov, 2019-04-24
@stepan-neretin7

Elementary googling solves the problem.
In migration

public function __construct()
{
   \DB::getDoctrineSchemaManager()->getDatabasePlatform()->registerDoctrineTypeMapping('enum', 'string');
}

A
Alexander Aksentiev, 2019-04-24
@Sanasol

https://laravel.com/docs/5.8/migrations

Before modifying a column , be sure to add the doctrine/dbal dependency to your composer.json file. The Doctrine DBAL library is used to determine the current state of the column and create the SQL queries needed to make the specified adjustments to the column:

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question