2019_07_29_164451_create_feature_table.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. use Illuminate\Support\Facades\Schema;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Database\Migrations\Migration;
  5. class CreateFeatureTable extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. public function up()
  13. {
  14. Schema::create('feature', function (Blueprint $table) {
  15. $table->increments('id');
  16. $table->string('name')->length(20)->nullable();
  17. $table->integer('parentid')->length(5)->nullable();
  18. $table->string('district')->length(20)->nullable();
  19. $table->string('personal')->length(20)->nullable();
  20. $table->text('content')->nullable();
  21. $table->string('title')->length(30)->nullable();
  22. $table->string('photo')->length(30)->nullable();
  23. $table->string('occupation')->length(20)->nullable();
  24. $table->text('summary')->nullable();
  25. $table->string('addtime')->length(20)->nullable();
  26. $table->integer('read')->length(11)->nullable();
  27. $table->string('is_display')->length(10)->nullable();
  28. $table->string('seo_keywords')->length(50)->nullable();
  29. $table->text('seo_description')->nullable();
  30. $table->integer('article_order')->length(5)->nullable();
  31. $table->text('is_url')->nullable();
  32. $table->integer('type_id')->length(5)->nullable();
  33. $table->integer('rc_show')->length(5)->nullable();
  34. $table->timestamps();
  35. });
  36. }
  37. /**
  38. * Reverse the migrations.
  39. *
  40. * @return void
  41. */
  42. public function down()
  43. {
  44. Schema::dropIfExists('feature');
  45. }
  46. }