lumen-generators/templates/migration.wnt

24 lines
409 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;
2015-10-07 17:37:17 +01:00
class {{name}}Table extends Migration
2015-09-23 01:49:46 +01:00
{
2016-12-29 16:35:34 +01:00
2015-09-23 01:49:46 +01:00
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}}
{{additionals}}
2015-09-23 01:49:46 +01:00
});
}
public function down()
{
Schema::drop('{{table}}');
}
}