Don't add the unique preferredUsername index for now
authorChocobozzz <me@florianbigard.com>
Thu, 12 Dec 2019 09:24:08 +0000 (10:24 +0100)
committerChocobozzz <me@florianbigard.com>
Thu, 12 Dec 2019 09:56:34 +0000 (10:56 +0100)
We'll do it in the next release so admins can prepare it

server/models/activitypub/actor.ts

index e539b579cc60d65c96996272263c4f51ccbd85e7..71db44b2f8948163c46e45241f61dac6b806c8fc 100644 (file)
@@ -122,13 +122,13 @@ export const unusedActorAttributesForAPI = [
         }
       }
     },
-    {
-      fields: [ 'preferredUsername' ],
-      unique: true,
-      where: {
-        serverId: null
-      }
-    },
+    // {
+    //   fields: [ 'preferredUsername' ],
+    //   unique: true,
+    //   where: {
+    //     serverId: null
+    //   }
+    // },
     {
       fields: [ 'inboxUrl', 'sharedInboxUrl' ]
     },