fix unique key for auth

This commit is contained in:
yggverse 2024-11-20 09:54:01 +02:00
parent 59e9739142
commit cadefe3f1d
4 changed files with 4 additions and 8 deletions

View file

@ -78,11 +78,7 @@ pub fn init(tx: &Transaction) -> Result<usize, Error> {
`url` VARCHAR(1024) NOT NULL,
FOREIGN KEY (`profile_identity_gemini_id`) REFERENCES `profile_identity_gemini`(`id`),
UNIQUE (
`profile_identity_gemini_id`,
`url`
)
UNIQUE (`url`)
)",
[],
)