clone saver parameters and framework

This commit is contained in:
2019-01-19 00:53:18 -06:00
parent 5847c9f59a
commit 69f60b45ce
8 changed files with 194 additions and 48 deletions

View File

@@ -0,0 +1,36 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateClonesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
if(!Schema::hasTable('clones')) {
Schema::create('clones', function (Blueprint $table) {
$table->increments('id');
$table->string('character_id');
$table->boolean('active');
$table->timestamps();
});
}
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('clones');
}
}