This commit is contained in:
2018-11-05 19:31:49 -06:00
parent 2aff7e6135
commit 2fd2d65904
5 changed files with 57 additions and 16 deletions
@@ -0,0 +1,37 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateEsiScopes extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
if(!Schema::hasTable('EsiScopes')) {
Schema::create('EsiScopes', function(Blueprint $table) {
$table->integer('id')->increments();
$table->integer('character_id');
$table->string('scope');
$table->timestamps();
});
}
Schema::dropIfExists('UserEsiScopes');
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('EsiScopes');
}
}