up()
up()
Run the migrations.
<?php
/**
* JingYao-backend
*
* @link https://gitee.com/wang-zhihui-release/jingyao-backend
* @apiDocument https://gitee.com/wang-zhihui-release/jingyao-backend/wikis/
*/
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
// 广而告之的机构 和清风的不一样
class CreatePosterInstitutionsTable extends Migration
{
/**
* Run the migrations.
*/
public function up()
{
Schema::create('poster_institutions', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->string('website');
$table->string('phone');
$table->string('address');
$table->string('is_hide')->default('N');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down()
{
Schema::dropIfExists('poster_institutions');
}
}