getDatabasePlatform()->registerDoctrineTypeMapping('enum', 'string'); } /** * Run the migrations. * * @return void */ public function up() { Schema::table('invoices', function (Blueprint $table) { $table->bigInteger('sale_order_id')->unsigned()->nullable()->change(); $table->bigInteger('deal_id')->unsigned()->nullable(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('invoices', function (Blueprint $table) { $table->dropColumn('sale_order_id'); $table->dropColumn('deal_id'); }); } }