Adjust columns in migrations and give lens to strings and custom flight fields #48

This commit is contained in:
Nabeel Shahzad
2017-07-10 18:54:51 -05:00
parent 6f745091de
commit b5dd700044
14 changed files with 73 additions and 32 deletions

View File

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