mirror of
https://github.com/flarum/framework.git
synced 2025-02-23 14:22:11 +08:00
32 lines
550 B
Plaintext
32 lines
550 B
Plaintext
<?php
|
|
|
|
namespace Flarum\Migrations\{{extension}};
|
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Flarum\Migrations\Migration;
|
|
|
|
class {{name}} extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
$this->schema->create('{{table}}', function (Blueprint $table) {
|
|
$table->increments('id');
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
$this->schema->drop('{{table}}');
|
|
}
|
|
}
|