2019_09_09_101319_create_members_project_table.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. use Illuminate\Support\Facades\Schema;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Database\Migrations\Migration;
  5. class CreateMembersProjectTable extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. public function up()
  13. {
  14. Schema::create('members_project', function (Blueprint $table) {
  15. $table->increments('id');
  16. $table->integer('uid')->length(10)->nullable();
  17. $table->string('link_man')->length(100)->nullable();
  18. $table->string('link_phone')->length(50)->nullable();
  19. $table->string('link_email')->length(100)->nullable();
  20. $table->string('link_address')->length(255)->nullable();
  21. $table->string('project_title')->length(255)->nullable();
  22. $table->text('project_intro')->nullable();
  23. $table->text('project_info')->nullable();
  24. $table->text('project_help')->nullable();
  25. $table->text('project_audit')->nullable();
  26. $table->timestamps();
  27. });
  28. }
  29. /**
  30. * Reverse the migrations.
  31. *
  32. * @return void
  33. */
  34. public function down()
  35. {
  36. Schema::dropIfExists('members_project');
  37. }
  38. }