From: Chocobozzz Date: Thu, 12 Dec 2019 09:24:08 +0000 (+0100) Subject: Don't add the unique preferredUsername index for now X-Git-Tag: v2.1.0-rc.1~221 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=458218d2baf286835754c666cfc635cce467c24e;p=oweals%2Fpeertube.git Don't add the unique preferredUsername index for now We'll do it in the next release so admins can prepare it --- diff --git a/server/models/activitypub/actor.ts b/server/models/activitypub/actor.ts index e539b579c..71db44b2f 100644 --- a/server/models/activitypub/actor.ts +++ b/server/models/activitypub/actor.ts @@ -122,13 +122,13 @@ export const unusedActorAttributesForAPI = [ } } }, - { - fields: [ 'preferredUsername' ], - unique: true, - where: { - serverId: null - } - }, + // { + // fields: [ 'preferredUsername' ], + // unique: true, + // where: { + // serverId: null + // } + // }, { fields: [ 'inboxUrl', 'sharedInboxUrl' ] },