Added support for enum that was added :(
This commit is contained in:
parent
738896bdc2
commit
5f3147cf36
1 changed files with 3 additions and 0 deletions
|
@ -13,6 +13,9 @@ class MakeSerialNullable extends Migration
|
||||||
*/
|
*/
|
||||||
public function up()
|
public function up()
|
||||||
{
|
{
|
||||||
|
$platform = Schema::getConnection()->getDoctrineSchemaManager()->getDatabasePlatform();
|
||||||
|
$platform->registerDoctrineTypeMapping('enum', 'string');
|
||||||
|
|
||||||
Schema::table('assets', function (Blueprint $table) {
|
Schema::table('assets', function (Blueprint $table) {
|
||||||
$table->string('serial')->nullable()->default(null)->change();
|
$table->string('serial')->nullable()->default(null)->change();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue