mirror of
https://github.com/ZorgCC/lumen-generators.git
synced 2024-12-27 06:25:28 +03:00
a9c12e9fa0
- Bug fixed: [Undefined index: factory](https://github.com/webNeat/lumen-generators/issues/14) - Feature added: [Check if file already exists before generating it](https://github.com/webNeat/lumen-generators/issues/11) - Feature added: [Support for additional columns like nullableTimestamps() and softDeletes() in migrations](https://github.com/webNeat/lumen-generators/issues/12) - Feature added: [Specifying namespace for `wn:resource` and `wn:resources`](https://github.com/webNeat/lumen-generators/issues/18)
24 lines
409 B
Plaintext
24 lines
409 B
Plaintext
<?php
|
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
class {{name}}Table extends Migration
|
|
{
|
|
|
|
public function up()
|
|
{
|
|
Schema::create('{{table}}', function(Blueprint $table) {
|
|
$table->increments('id');
|
|
{{schema}}
|
|
{{constraints}}
|
|
{{additionals}}
|
|
});
|
|
}
|
|
|
|
public function down()
|
|
{
|
|
Schema::drop('{{table}}');
|
|
}
|
|
}
|