Migration generated without Blueprint type of $table and commented migration code block - why?
Better - place migration code block without comments and with true typing
Replace:
<?php namespace {namespace};
use Schema;
use Winter\Storm\Database\Updates\Migration;
class {className} extends Migration
{
public function up()
{
// Schema::create('{tableNamePrefix}_table', function($table)
// {
// });
}
public function down()
{
// Schema::drop('{tableNamePrefix}_table');
}
}
To:
<?php namespace {namespace};
use Schema;
use Winter\Storm\Database\Schema\Blueprint;
use Winter\Storm\Database\Updates\Migration;
class {className} extends Migration
{
public function up()
{
Schema::table('{tableNamePrefix}_table', function (Blueprint $table) {
});
}
public function down()
{
Schema::table('{tableNamePrefix}_table', function (Blueprint $table) {
});
}
}