You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
1.6 KiB

  1. <?php
  2. use Illuminate\Support\Facades\Schema;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Database\Migrations\Migration;
  5. class CreateTweetQueue extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. public function up()
  13. {
  14. Schema::create('tweets', function (Blueprint $table) {
  15. $table->increments('id');
  16. $table->timestamps();
  17. $table->integer('player_id');
  18. $table->integer('team_id');
  19. $table->text('text');
  20. $table->json('photo');
  21. $table->datetime('claimed_at')->nullable();
  22. $table->boolean('processed')->default(0);
  23. $table->integer('mission')->default(0);
  24. // Mission 1
  25. $table->integer('m1_transit_line_id')->nullable();
  26. $table->string('m1_non_trimet', 255)->nullable();
  27. // Mission 2
  28. $table->integer('m2_transit_center_id')->nullable();
  29. $table->boolean('m2_with_other_team')->default(0);
  30. // Mission 3
  31. $table->boolean('m3_complete')->nullable();
  32. // Mission 4
  33. $table->boolean('m4_complete')->nullable();
  34. // Mission 5
  35. $table->boolean('m5_complete')->nullable();
  36. $table->boolean('m5_tip')->nullable();
  37. // Mission 6
  38. $table->boolean('m6_complete')->nullable();
  39. // Mission 7
  40. $table->integer('m7_document_id')->nullable();
  41. });
  42. }
  43. /**
  44. * Reverse the migrations.
  45. *
  46. * @return void
  47. */
  48. public function down()
  49. {
  50. Schema::dropIfExists('tweets');
  51. }
  52. }