From eec36cb13a235d1383a7e9fef6785011eace4f7b Mon Sep 17 00:00:00 2001 From: Svpernova09 Date: Wed, 10 Dec 2014 07:43:57 -0600 Subject: [PATCH] Add migration to add maintained and termination_date fields to licenses table --- ...add_fields_maintained_term_to_licenses.php | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 app/database/migrations/2014_12_09_082500_add_fields_maintained_term_to_licenses.php diff --git a/app/database/migrations/2014_12_09_082500_add_fields_maintained_term_to_licenses.php b/app/database/migrations/2014_12_09_082500_add_fields_maintained_term_to_licenses.php new file mode 100644 index 0000000000..21c9269b08 --- /dev/null +++ b/app/database/migrations/2014_12_09_082500_add_fields_maintained_term_to_licenses.php @@ -0,0 +1,34 @@ +date('termination_date')->nullable(); + $table->boolean('maintained'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('licenses', function ($table) { + $table->dropColumn('termination_date'); + $table->dropColumn('maintained'); + }); + } + +}