change uniquness of gradido id

This commit is contained in:
Einhornimmond 2023-08-30 21:59:48 +02:00
parent 9e0333c9fe
commit 1a42838a94
2 changed files with 1 additions and 2 deletions

View File

@ -11,7 +11,6 @@ export class User extends BaseEntity {
name: 'gradido_id',
length: 36,
nullable: true,
unique: true,
collation: 'utf8mb4_unicode_ci',
})
gradidoID?: string

View File

@ -22,7 +22,7 @@ export async function upgrade(queryFn: (query: string, values?: any[]) => Promis
\`created_at\` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
\`confirmed_at\` datetime(3) DEFAULT NULL,
PRIMARY KEY (\`id\`),
UNIQUE KEY \`gradido_id\` (\`gradido_id\`),
INDEX \`gradido_id\` (\`gradido_id\`),
UNIQUE KEY \`pubkey\` (\`pubkey\`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;`)