From 200a78d77b806f6b3382739fb8846ed96501c87d Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Mon, 26 Oct 2020 19:57:08 -0700 Subject: [PATCH] Don't allow null schedule names anymore; ref #2609 --- ...move_nullable_from_schedule_name_field.php | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 database/migrations/2020_10_26_194904_remove_nullable_from_schedule_name_field.php diff --git a/database/migrations/2020_10_26_194904_remove_nullable_from_schedule_name_field.php b/database/migrations/2020_10_26_194904_remove_nullable_from_schedule_name_field.php new file mode 100644 index 000000000..fc1f01baa --- /dev/null +++ b/database/migrations/2020_10_26_194904_remove_nullable_from_schedule_name_field.php @@ -0,0 +1,35 @@ +string('name')->nullable(false)->change(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('schedules', function (Blueprint $table) { + $table->string('name')->nullable()->change(); + }); + } +}