Skip to content

Commit

Permalink
fix migration
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarzin committed Jun 26, 2024
1 parent 76bc17b commit b71621c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions database/migrations/2024_06_26_090434_modify_users_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public function up(): void
{
Schema::table('users', function (Blueprint $table) {
$table->string('email')->unique()->change();
$table->dropUnique('users_title_unique');
$table->string('title')->unique(false)->nullable()->change();
});
}

Expand All @@ -23,8 +23,8 @@ public function up(): void
public function down(): void
{
Schema::table('users', function (Blueprint $table) {
$table->string('email')->change();
$table->unique('title');
$table->string('email')->unique(false)->change();
$table->unique('title')->unique()->nullable()->change();
});
}
};

0 comments on commit b71621c

Please sign in to comment.