phpvms/resources/stubs/modules/migration/drop.stub

36 lines
611 B
Plaintext
Raw Normal View History

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