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

36 lines
600 B
Plaintext
Raw Normal View History

2017-12-14 12:24:41 +08:00
<?php
2019-08-02 21:02:23 +08:00
use App\Contracts\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::table('$TABLE$', function (Blueprint $table) {
$FIELDS_UP$
2017-12-14 12:24:41 +08:00
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('$TABLE$', function (Blueprint $table) {
$FIELDS_DOWN$
2017-12-14 12:24:41 +08:00
});
}
}