1
0
Fork 0
forked from mirror/pixelfed

Update migration

This commit is contained in:
Daniel Supernault 2023-12-20 23:17:27 -07:00
parent dd16189fc8
commit ae1db1e3ab
No known key found for this signature in database
GPG key ID: 23740873EE6F76A1

View file

@ -14,7 +14,7 @@ return new class extends Migration
Schema::create('user_domain_blocks', function (Blueprint $table) {
$table->id();
$table->unsignedBigInteger('profile_id')->index();
$table->string('domain');
$table->string('domain')->index();
$table->unique(['profile_id', 'domain'], 'user_domain_blocks_by_id');
});
}