updating schema for migration
This commit is contained in:
@@ -13,25 +13,27 @@ class CreateMoonsTable extends Migration
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('Moons', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->string('Region');
|
||||
$table->string('System');
|
||||
$table->string('Planet');
|
||||
$table->string('Moon');
|
||||
$table->string('StructureName')->default('No Name');
|
||||
$table->string('FirstOre')->default('None');
|
||||
$table->integer('FirstQuantity')->default('0');
|
||||
$table->string('SecondOre')->default('None');
|
||||
$table->integer('SecondQuantity')->default('0');
|
||||
$table->string('ThirdOre')->default('None');
|
||||
$table->integer('ThirdQuantity')->default('0');
|
||||
$table->string('FourthOre')->default('None');
|
||||
$table->integer('FourthQuantity')->default('0');
|
||||
$table->string('RentalCorp')->default('Not Rented');
|
||||
$table->integer('RentalEnd')->default('0');
|
||||
$table->timestamp('created_at')->nullable();
|
||||
});
|
||||
if(!Schema::hasTable('Moons')) {
|
||||
Schema::create('Moons', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->string('Region');
|
||||
$table->string('System');
|
||||
$table->string('Planet');
|
||||
$table->string('Moon');
|
||||
$table->string('StructureName')->default('No Name');
|
||||
$table->string('FirstOre')->default('None');
|
||||
$table->integer('FirstQuantity')->default('0');
|
||||
$table->string('SecondOre')->default('None');
|
||||
$table->integer('SecondQuantity')->default('0');
|
||||
$table->string('ThirdOre')->default('None');
|
||||
$table->integer('ThirdQuantity')->default('0');
|
||||
$table->string('FourthOre')->default('None');
|
||||
$table->integer('FourthQuantity')->default('0');
|
||||
$table->string('RentalCorp')->default('Not Rented');
|
||||
$table->integer('RentalEnd')->default('0');
|
||||
$table->timestamp('created_at')->nullable();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user