2017-12-14 12:24:41 +08:00
|
|
|
<?php
|
|
|
|
|
2018-03-20 09:50:40 +08:00
|
|
|
use App\Interfaces\Migration;
|
2017-12-14 12:24:41 +08:00
|
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
|
|
2018-03-20 09:50:40 +08:00
|
|
|
/**
|
|
|
|
* Class $CLASS$
|
|
|
|
*/
|
2017-12-14 12:24:41 +08:00
|
|
|
class $CLASS$ extends Migration
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Run the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function up()
|
|
|
|
{
|
|
|
|
Schema::create('$TABLE$', function (Blueprint $table) {
|
|
|
|
$table->increments('id');
|
2018-03-20 09:50:40 +08:00
|
|
|
$FIELDS$
|
2017-12-14 12:24:41 +08:00
|
|
|
$table->timestamps();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Reverse the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function down()
|
|
|
|
{
|
|
|
|
Schema::dropIfExists('$TABLE$');
|
|
|
|
}
|
|
|
|
}
|