Add extra fields needed for internal active flags

This commit is contained in:
Nabeel Shahzad 2018-04-24 12:52:11 -05:00
parent 9502dd9835
commit fe5400a3bb
3 changed files with 4 additions and 0 deletions

View File

@ -36,6 +36,7 @@ class CreateFlightTables extends Migration
$table->date('end_date')->nullable();
$table->boolean('has_bid')->default(false);
$table->boolean('active')->default(true);
$table->boolean('flight_active')->default(true); // used by the cron
$table->timestamps();
$table->primary('id');

View File

@ -22,6 +22,8 @@ class CreateRanksTable extends Migration
$table->boolean('auto_approve_acars')->nullable()->default(false);
$table->boolean('auto_approve_manual')->nullable()->default(false);
$table->boolean('auto_promote')->nullable()->default(true);
$table->boolean('auto_approve_above_score')->nullable()->default(false);
$table->smallInteger('auto_approve_score')->nullable();
$table->timestamps();
$table->unique('name');

View File

@ -36,6 +36,7 @@ class CreatePirepTables extends Migration
$table->unsignedDecimal('block_fuel')->nullable();
$table->unsignedDecimal('fuel_used')->nullable();
$table->decimal('landing_rate')->nullable();
$table->smallInteger('score')->nullable();
$table->text('route')->nullable();
$table->text('notes')->nullable();
$table->unsignedTinyInteger('source')->nullable()->default(0);