mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 13:44:06 -08:00
Added support for enum that was added :(
This commit is contained in:
parent
738896bdc2
commit
5f3147cf36
|
@ -13,6 +13,9 @@ class MakeSerialNullable extends Migration
|
|||
*/
|
||||
public function up()
|
||||
{
|
||||
$platform = Schema::getConnection()->getDoctrineSchemaManager()->getDatabasePlatform();
|
||||
$platform->registerDoctrineTypeMapping('enum', 'string');
|
||||
|
||||
Schema::table('assets', function (Blueprint $table) {
|
||||
$table->string('serial')->nullable()->default(null)->change();
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue