From 41778980bc5ce79fc2abaaeffac6c55ecfa7d08d Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 16 Feb 2022 13:45:59 -0800 Subject: [PATCH] Add migration for is_unique Signed-off-by: snipe --- ..._add_unique_constraint_to_custom_field.php | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 database/migrations/2022_02_16_152431_add_unique_constraint_to_custom_field.php diff --git a/database/migrations/2022_02_16_152431_add_unique_constraint_to_custom_field.php b/database/migrations/2022_02_16_152431_add_unique_constraint_to_custom_field.php new file mode 100644 index 0000000000..346f51d632 --- /dev/null +++ b/database/migrations/2022_02_16_152431_add_unique_constraint_to_custom_field.php @@ -0,0 +1,32 @@ +boolean('is_unique')->nullable()->default(0); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('custom_fields', function (Blueprint $table) { + $table->dropColumn('is_unique'); + }); + } +}