diff --git a/database/migrations/2020_07_28_091134_update_homes_constraint_url.php b/database/migrations/2020_07_28_091134_update_homes_constraint_url.php new file mode 100644 index 0000000..76b4247 --- /dev/null +++ b/database/migrations/2020_07_28_091134_update_homes_constraint_url.php @@ -0,0 +1,32 @@ +unique('url'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('homes', static function (Blueprint $table) { + $table->dropUnique(['url']); + }); + } +}