| 123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- use Illuminate\Support\Facades\Schema;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Database\Migrations\Migration;
- class CreateRecommendationsTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('recommendations', function (Blueprint $table) {
- $table->increments('id');
- $table->string('subject'); //主题
- $table->string('url'); //链接地址
- $table->string('logo'); //链接logo
- $table->tinyInteger('sort'); //排序字段 ASC
- $table->tinyInteger('status')->default(1); //状态
- $table->timestamps();
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::drop('recommendations');
- }
- }
|