woops, broke the build - set the IATA codes

This commit is contained in:
Nabeel Shahzad
2017-07-22 23:07:37 -05:00
parent 9a08586564
commit 0dcdd5cba5
3 changed files with 3 additions and 1 deletions

View File

@@ -16,7 +16,7 @@ class CreateAirlinesTable extends Migration
Schema::create('airlines', function (Blueprint $table) { Schema::create('airlines', function (Blueprint $table) {
$table->increments('id'); $table->increments('id');
$table->string('code', 5); $table->string('code', 5);
$table->string('iata', 5); $table->string('iata', 3)->nullable();
$table->string('name', 50); $table->string('name', 50);
$table->string('country', 2)->nullable(); $table->string('country', 2)->nullable();
$table->boolean('active'); $table->boolean('active');

View File

@@ -45,6 +45,7 @@ ranks:
airlines: airlines:
- id: 1 - id: 1
code: VMS code: VMS
iata: VM
name: phpvms airlines name: phpvms airlines
active: 1 active: 1
created_at: now created_at: now

View File

@@ -2,6 +2,7 @@
airlines: airlines:
- id: 1 - id: 1
code: VMS code: VMS
iata: VM
name: phpvms airlines name: phpvms airlines
active: 1 active: 1
created_at: now created_at: now