From 8397dbc62cfcc43427359d3e26b9229bb7114d9e Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Tue, 8 Dec 2015 18:33:22 -0500 Subject: [PATCH] Add timestamps to service tables --- ...5_12_08_222131_add_timestamps_services.php | 32 +++++++++++++++++++ ..._222146_add_timestamps_service_options.php | 32 +++++++++++++++++++ ...22200_add_timestamps_service_variables.php | 32 +++++++++++++++++++ ...222213_add_timestamps_server_variables.php | 32 +++++++++++++++++++ 4 files changed, 128 insertions(+) create mode 100644 database/migrations/2015_12_08_222131_add_timestamps_services.php create mode 100644 database/migrations/2015_12_08_222146_add_timestamps_service_options.php create mode 100644 database/migrations/2015_12_08_222200_add_timestamps_service_variables.php create mode 100644 database/migrations/2015_12_08_222213_add_timestamps_server_variables.php diff --git a/database/migrations/2015_12_08_222131_add_timestamps_services.php b/database/migrations/2015_12_08_222131_add_timestamps_services.php new file mode 100644 index 000000000..e9455a132 --- /dev/null +++ b/database/migrations/2015_12_08_222131_add_timestamps_services.php @@ -0,0 +1,32 @@ +timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('services', function (Blueprint $table) { + $table->dropColumn('created_at'); + $table->dropColumn('updated_at'); + }); + } +} diff --git a/database/migrations/2015_12_08_222146_add_timestamps_service_options.php b/database/migrations/2015_12_08_222146_add_timestamps_service_options.php new file mode 100644 index 000000000..7749b555c --- /dev/null +++ b/database/migrations/2015_12_08_222146_add_timestamps_service_options.php @@ -0,0 +1,32 @@ +timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('service_options', function (Blueprint $table) { + $table->dropColumn('created_at'); + $table->dropColumn('updated_at'); + }); + } +} diff --git a/database/migrations/2015_12_08_222200_add_timestamps_service_variables.php b/database/migrations/2015_12_08_222200_add_timestamps_service_variables.php new file mode 100644 index 000000000..e2bcfc2b8 --- /dev/null +++ b/database/migrations/2015_12_08_222200_add_timestamps_service_variables.php @@ -0,0 +1,32 @@ +timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('service_variables', function (Blueprint $table) { + $table->dropColumn('created_at'); + $table->dropColumn('updated_at'); + }); + } +} diff --git a/database/migrations/2015_12_08_222213_add_timestamps_server_variables.php b/database/migrations/2015_12_08_222213_add_timestamps_server_variables.php new file mode 100644 index 000000000..11c91a34d --- /dev/null +++ b/database/migrations/2015_12_08_222213_add_timestamps_server_variables.php @@ -0,0 +1,32 @@ +timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('server_variables', function (Blueprint $table) { + $table->dropColumn('created_at'); + $table->dropColumn('updated_at'); + }); + } +}