update migration

This commit is contained in:
Jack Goh
2018-08-02 11:29:23 +08:00
parent 3302d5cb65
commit 67b8fd46f7
@@ -18,13 +18,7 @@ class UpdateAccnoToIdSettingActiveTable extends Migration
$table->dropForeign('setting_active_banks_x1_bank_id_foreign');
$table->dropForeign('setting_active_banks_x2_bank_id_foreign');
$table->dropForeign('setting_active_banks_beneficiary_id_foreign');
$table->dropColumn('x1_bank_id');
$table->dropColumn('x2_bank_id');
$table->dropColumn('beneficiary_id');
});
Schema::table('setting_active_banks', function(Blueprint $table)
{
$table->unsignedInteger('x1_bank_id')->unique();
$table->foreign('x1_bank_id')
->references('id')->on('setting_malaysia_banks');