blacklist update to add removal notes

This commit is contained in:
2020-08-30 07:52:11 -05:00
parent a242bffb28
commit 0e6109c09a
5 changed files with 66 additions and 4 deletions
@@ -0,0 +1,45 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class ModifyBlackListTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
if(Schema::hasTable('alliance_blacklist')) {
Schema::table('alliance_blacklist', function(Blueprint $table) {
$table->enum('validity', [
'Valid',
'Invalid',
])->default('Valid');
$table->string('removed_by_id')->nullable();
$table->string('removed_by_name')->nullable();
$table->string('removed_notes')->nullable();
});
}
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('alliance_blacklist', function(Blueprint $table) {
$table->dropColumn([
'validity',
'removed_by_id',
'removed_by_name',
'removed_notes',
]);
});
}
}