diff --git a/database/migrations/2024_07_09_141535_drop_unicity_from_customer_emails.php b/database/migrations/2024_07_09_141535_drop_unicity_from_customer_emails.php new file mode 100644 index 0000000..71b2fe1 --- /dev/null +++ b/database/migrations/2024_07_09_141535_drop_unicity_from_customer_emails.php @@ -0,0 +1,30 @@ +dropUnique(['email']); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() { + Schema::table('emails', function (Blueprint $table) { + // TODO: Remove all duplicated e-mails. + $table->unique('email'); + }); + } +}