Adding Ship Class column

This commit is contained in:
2021-04-09 01:35:39 -07:00
parent 589bf47eff
commit 0145a8073a
4 changed files with 42 additions and 2 deletions

View File

@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddShipClassToShips extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('ships', function (Blueprint $table) {
$table->string('shipClass')->nullable(true);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('ships', function (Blueprint $table) {
$table->dropColumn('shipClass');
});
}
}