12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- use Illuminate\Support\Facades\Schema;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Database\Migrations\Migration;
- class CreateAlbumInformation extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('album_information', function (Blueprint $table) {
- $table->increments('id');
- $table->unsignedInteger('store_id');
- $table->string('title',100)->comment('标题');
- $table->unsignedInteger('sort')->comment('排序');
- $table->unsignedInteger('is_delete')->default(0)->comment('Is_delete');
- $table->longText('content')->comment('内容');
- $table->integer('addtime')->comment('添加时间');
- $table->timestamps();
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::dropIfExists('album_information');
- }
- }
|