diff --git a/compass/database/migrations/2018_01_28_224119_cache_last_location.php b/compass/database/migrations/2018_01_28_224119_cache_last_location.php new file mode 100644 index 0000000..6423e45 --- /dev/null +++ b/compass/database/migrations/2018_01_28_224119_cache_last_location.php @@ -0,0 +1,35 @@ +longtext('last_location')->nullable(); + $table->datetime('last_location_date')->nullable(); + $table->longtext('current_trip')->nullable(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('databases', function (Blueprint $table) { + $table->dropColumn('last_location'); + $table->dropColumn('last_location_date'); + $table->dropColumn('current_trip'); + }); + } +}