From 4e8d9729b79b032d47becf6e7cc07772aba3163a Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Mon, 10 Jul 2017 16:13:52 -0700 Subject: [PATCH] add database migrations for #6 --- .../2017_07_10_231240_database_settings.php | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 compass/database/migrations/2017_07_10_231240_database_settings.php diff --git a/compass/database/migrations/2017_07_10_231240_database_settings.php b/compass/database/migrations/2017_07_10_231240_database_settings.php new file mode 100644 index 0000000..45cf0cd --- /dev/null +++ b/compass/database/migrations/2017_07_10_231240_database_settings.php @@ -0,0 +1,33 @@ +string('timezone', 100)->default('UTC'); + $table->boolean('metric')->default(true); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('databases', function (Blueprint $table) { + $table->dropColumn('timezone'); + $table->dropColumn('metric'); + }); + } +}