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) {
$table->increments('id');
$table->string('code', 5);
$table->string('iata', 5);
$table->string('iata', 3)->nullable();
$table->string('name', 50);
$table->string('country', 2)->nullable();
$table->boolean('active');

View File

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

View File

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