12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <?php
- use Illuminate\Support\Facades\Schema;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Database\Migrations\Migration;
- class CreateInnovatorTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('innovator', function (Blueprint $table) {
- $table->increments('id');
- $table->smallInteger('type_id')->length(5);
- $table->string('type_name')->length(255);
- $table->smallInteger('parentid')->length(5);
- $table->string('name')->length(50);
- $table->string('photo_img')->length(255);
- $table->string('company_name')->length(255);
- $table->string('duty_name')->length(50);
- $table->integer('trade_id')->length(60);
- $table->string('trade_cn')->length(100);
- $table->string('points')->length(30);
- $table->mediumText('content');
- $table->smallInteger('display_order')->length(5);
- $table->string('mobile')->length(20);
- $table->tinyInteger('mobile_display')->length(1);
- $table->string('email')->length(60);
- $table->tinyInteger('email_display')->length(1);
- $table->integer('addtime')->length(10);
- $table->string('is_url')->length(200);
- $table->tinyInteger('is_display')->length(1);
- $table->string('keywords')->length(100);
- $table->string('description')->length(200);
- $table->timestamps();
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::dropIfExists('innovator');
- }
- }
|