2018_04_25_062134_create_notice_sends_table.php 644 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. use Illuminate\Database\Schema\Blueprint;
  3. use Illuminate\Database\Migrations\Migration;
  4. class CreateNoticeSendsTable extends Migration
  5. {
  6. /**
  7. * Run the migrations.
  8. *
  9. * @return void
  10. */
  11. public function up()
  12. {
  13. Schema::create('notice_sends', function (Blueprint $table) {
  14. $table->increments('id');
  15. $table->tinyInteger('notice_id');
  16. $table->text('sendto_id');
  17. $table->timestamps();
  18. });
  19. }
  20. /**
  21. * Reverse the migrations.
  22. *
  23. * @return void
  24. */
  25. public function down()
  26. {
  27. Schema::drop('notice_sends');
  28. }
  29. }