fix: sql migration

feat-otp-verification
James Elliott 2023-02-12 12:25:15 +11:00
parent 40e247fcee
commit be21d73c72
No known key found for this signature in database
GPG Key ID: 0F1C4A096E857E49
2 changed files with 3 additions and 1 deletions

View File

@ -1,2 +1,3 @@
DROP INDEX webauthn_devices_lookup_key;
DROP INDEX webauthn_devices_lookup_key ON webauthn_devices;
ALTER TABLE webauthn_devices MODIFY COLUMN rpid VARCHAR(512);
CREATE UNIQUE INDEX webauthn_devices_lookup_key ON webauthn_devices (rpid, username, description);

View File

@ -1,2 +1,3 @@
DROP INDEX webauthn_devices_lookup_key;
ALTER TABLE webauthn_devices COLUMN rpid SET DATA TYPE VARCHAR(512);
CREATE UNIQUE INDEX webauthn_devices_lookup_key ON webauthn_devices (rpid, username, description);