mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-21 22:11:26 +00:00
Merge branch 'jippi-fork' of github.com:jippi/pixelfed into jippi-fork
This commit is contained in:
commit
bb960fd485
1 changed files with 5 additions and 1 deletions
|
@ -25,7 +25,11 @@ return new class extends Migration
|
||||||
});
|
});
|
||||||
|
|
||||||
Schema::table('user_roles', function (Blueprint $table) {
|
Schema::table('user_roles', function (Blueprint $table) {
|
||||||
$table->dropIndex('user_roles_profile_id_unique');
|
$schemaManager = Schema::getConnection()->getDoctrineSchemaManager();
|
||||||
|
$indexesFound = $schemaManager->listTableIndexes('user_roles');
|
||||||
|
if (array_key_exists('user_roles_profile_id_unique', $indexesFound)) {
|
||||||
|
$table->dropIndex('user_roles_profile_id_unique');
|
||||||
|
}
|
||||||
$table->unsignedBigInteger('profile_id')->unique()->nullable()->index()->change();
|
$table->unsignedBigInteger('profile_id')->unique()->nullable()->index()->change();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue