lumen-generators/templates/migration.wnt

23 lines
419 B
Plaintext
Raw Normal View History

2015-09-23 03:49:46 +03:00
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class {{name}}Migration extends Migration
{
public function up()
{
Schema::create('{{table}}', function(Blueprint $table) {
$table->increments('id');
2015-09-26 04:43:35 +03:00
{{schema}}
2015-09-23 03:49:46 +03:00
$table->timestamps();
});
}
public function down()
{
Schema::drop('{{table}}');
}
}