create sessions table modified register fleet in fleetscontroller modified addpilot in fleetscontroller modified render fleet display modified update fleet function created set fleet end time function modified fleet class created set fleet uri function modified function to see if a token has a particular scope for Fleet
37 lines
816 B
PHP
37 lines
816 B
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
class CreateFleetsTable extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
if(!Schema::hasTable('Fleets')) {
|
|
Schema::create('Fleets', function (Blueprint $table) {
|
|
$table->increments('id');
|
|
$table->string('character_id');
|
|
$table->string('fleet')->unique();
|
|
$table->dateTime('creation_time');
|
|
$table->dateTime('fleet_end');
|
|
});
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('Fleets');
|
|
}
|
|
}
|