12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php
- use Illuminate\Support\Facades\Schema;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Database\Migrations\Migration;
- class CreateLinksTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('links', function (Blueprint $table) {
- $table->increments('id');
- $table->tinyInteger('is_display')->default('1')->comment('是否显示(1:是,0:否)');
- $table->integer('type_id')->comment('链接分类');
- $table->string('link_title')->comment('链接标题');
- $table->string('link_url')->comment('链接地址');
- $table->string('link_logo')->comment('链接的LOGO');
- $table->string('note')->comment('备注')->nullable();
- $table->integer('list_order')->default(0)->comment('顺序');
- $table->integer('subsite_id')->default(0)->comment('分站信息(0:总站)');
- $table->timestamps();
- $table->softDeletes();
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::dropIfExists('links');
- }
- }
|