lumen-generators/templates/migration.wnt

24 lines
435 B
Plaintext
Raw Normal View History

2015-09-23 01:49:46 +01: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 02:43:35 +01:00
{{schema}}
2015-09-26 22:43:06 +01:00
{{constraints}}
2015-09-23 01:49:46 +01:00
$table->timestamps();
});
}
public function down()
{
Schema::drop('{{table}}');
}
}