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.

35 lines
849 B

6 years ago
  1. <?php
  2. use Illuminate\Database\Schema\Blueprint;
  3. use Illuminate\Database\Migrations\Migration;
  4. class CacheLastLocation extends Migration
  5. {
  6. /**
  7. * Run the migrations.
  8. *
  9. * @return void
  10. */
  11. public function up()
  12. {
  13. Schema::table('databases', function (Blueprint $table) {
  14. $table->longtext('last_location')->nullable();
  15. $table->datetime('last_location_date')->nullable();
  16. $table->longtext('current_trip')->nullable();
  17. });
  18. }
  19. /**
  20. * Reverse the migrations.
  21. *
  22. * @return void
  23. */
  24. public function down()
  25. {
  26. Schema::table('databases', function (Blueprint $table) {
  27. $table->dropColumn('last_location');
  28. $table->dropColumn('last_location_date');
  29. $table->dropColumn('current_trip');
  30. });
  31. }
  32. }