parent
ede5b74383
commit
d3ec0f4de3
@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
use App\Contracts\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
/**
|
||||
* Increase Airport ICAO size to 5 chars
|
||||
* https://github.com/nabeelio/phpvms/issues/1052
|
||||
*/
|
||||
class IncreaseIcaoSizes extends Migration
|
||||
{
|
||||
public function up()
|
||||
{
|
||||
Schema::table('airports', function (Blueprint $table) {
|
||||
$table->string('iata', 5)->change();
|
||||
$table->string('icao', 5)->change();
|
||||
});
|
||||
|
||||
Schema::table('pireps', function (Blueprint $table) {
|
||||
$table->string('dpt_airport_id', 5)->change();
|
||||
$table->string('arr_airport_id', 5)->change();
|
||||
$table->string('alt_airport_id', 5)->change();
|
||||
});
|
||||
}
|
||||
}
|
Loading…
Reference in new issue