modified blacklist redirect after adding

This commit is contained in:
2019-12-01 03:49:32 -06:00
parent 9c927e025d
commit 829eb8428d
2 changed files with 6 additions and 3 deletions

View File

@@ -73,7 +73,7 @@ class BlacklistController extends Controller
} }
//Return the view //Return the view
return redirect('/blacklist/display')->with('success', 'Character added to the blacklist'); return view('blacklist.add')->with('success', 'Character added to the blacklist');
} }
public function RemoveFromBlacklist(Request $request) { public function RemoveFromBlacklist(Request $request) {

View File

@@ -16,7 +16,7 @@ class NewLookupTables extends Migration
if(!Schema::hasTable('character_lookup')) { if(!Schema::hasTable('character_lookup')) {
Schema::create('character_lookup', function (Blueprint $table) { Schema::create('character_lookup', function (Blueprint $table) {
$table->unsignedInteger('character_id'); $table->unsignedInteger('character_id');
$table->unsignedInteger('alliance_id'); $table->unsignedInteger('alliance_id')->nullable();
$table->unsignedInteger('ancestry_id')->nullable(); $table->unsignedInteger('ancestry_id')->nullable();
$table->string('birthday'); $table->string('birthday');
$table->unsignedInteger('bloodline_id'); $table->unsignedInteger('bloodline_id');
@@ -47,7 +47,10 @@ class NewLookupTables extends Migration
$table->decimal('tax_rate', 20, 2); $table->decimal('tax_rate', 20, 2);
$table->string('ticker'); $table->string('ticker');
$table->string('url')->nullable(); $table->string('url')->nullable();
$table->boolean('war_eligible'); $table->enum('war_eligible', [
'Yes',
'No',
])->default('No');
}); });
} }