import moons

This commit is contained in:
2021-05-30 18:54:59 +09:00
parent 89e4110ab0
commit 51da1dbbc3
7 changed files with 19 additions and 46 deletions

View File

@@ -13,8 +13,6 @@ class CreateNewMoonRentalTables extends Migration
*/
public function up()
{
Schema::dropIfExists('alliance_moons');
if(!Schema::hasTable('moon_lookup')) {
Schema::create('moon_lookup', function (Blueprint $table) {
$table->id();
@@ -45,7 +43,7 @@ class CreateNewMoonRentalTables extends Migration
}
if(!Schema::hasTable('alliance_moon_ores')) {
Schema::create('alliance_moons', function (Blueprint $table) {
Schema::create('alliance_moons_ores', function (Blueprint $table) {
$table->id();
$table->unsignedBigInteger('moon_id');
$table->string('moon_name')->default('Not Assigned');