update to how moons are displayed for the admin page

This commit is contained in:
2019-04-24 00:59:37 -05:00
parent 03c3c7ac6d
commit 899db99955
4 changed files with 88 additions and 24 deletions

View File

@@ -0,0 +1,34 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class ModifyMoonsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
if(Schema::hasTable('Moons')) {
Schema::table('Moons', function (Blueprint $table) {
$table->string('Paid');
});
}
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('Moons', function (Blueprint $table) {
$table->dropColumn('Paid');
});
}
}