From d970daa666c088e064fff5d37455a04841896477 Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 23 Aug 2016 15:50:43 -0700 Subject: [PATCH] Add new fields to custom fields table --- ...143353_add_new_fields_to_custom_fields.php | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 database/migrations/2016_08_23_143353_add_new_fields_to_custom_fields.php diff --git a/database/migrations/2016_08_23_143353_add_new_fields_to_custom_fields.php b/database/migrations/2016_08_23_143353_add_new_fields_to_custom_fields.php new file mode 100644 index 0000000000..ae32779a19 --- /dev/null +++ b/database/migrations/2016_08_23_143353_add_new_fields_to_custom_fields.php @@ -0,0 +1,34 @@ +string('field_values')->nullable()->default(null); + $table->boolean('field_encrypted')->default(0); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('custom_fields', function (Blueprint $table) { + // + $table->dropColumn('field_values', 'field_encrypted'); + }); + } +}