diff --git a/internal/storage/migrations/V0008.WebauthnMultiCookieDomain.postgres.up.sql b/internal/storage/migrations/V0008.WebauthnMultiCookieDomain.postgres.up.sql index c8867a95a..10172de0f 100644 --- a/internal/storage/migrations/V0008.WebauthnMultiCookieDomain.postgres.up.sql +++ b/internal/storage/migrations/V0008.WebauthnMultiCookieDomain.postgres.up.sql @@ -1,3 +1,3 @@ DROP INDEX webauthn_devices_lookup_key; -ALTER TABLE webauthn_devices COLUMN rpid SET DATA TYPE VARCHAR(512); +ALTER TABLE webauthn_devices ALTER COLUMN rpid SET DATA TYPE VARCHAR(512); CREATE UNIQUE INDEX webauthn_devices_lookup_key ON webauthn_devices (rpid, username, description);