mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
change uniquness of gradido id
This commit is contained in:
parent
9e0333c9fe
commit
1a42838a94
@ -11,7 +11,6 @@ export class User extends BaseEntity {
|
||||
name: 'gradido_id',
|
||||
length: 36,
|
||||
nullable: true,
|
||||
unique: true,
|
||||
collation: 'utf8mb4_unicode_ci',
|
||||
})
|
||||
gradidoID?: string
|
||||
|
||||
@ -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;`)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user