feat: sync login email verification support
This commit is contained in:
parent
e0cabb4930
commit
9a501f900a
39 changed files with 2198 additions and 117 deletions
1
deploy/migrations/0058_login_email_unique.down.sql
Normal file
1
deploy/migrations/0058_login_email_unique.down.sql
Normal file
|
|
@ -0,0 +1 @@
|
|||
DROP INDEX IF EXISTS public.account_passwords_login_email_lower_unique_idx;
|
||||
3
deploy/migrations/0058_login_email_unique.up.sql
Normal file
3
deploy/migrations/0058_login_email_unique.up.sql
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
CREATE UNIQUE INDEX account_passwords_login_email_lower_unique_idx
|
||||
ON public.account_passwords (lower((login_email)::text))
|
||||
WHERE ((login_email)::text <> ''::text);
|
||||
7
deploy/migrations/0059_auth_key_client_info.down.sql
Normal file
7
deploy/migrations/0059_auth_key_client_info.down.sql
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
ALTER TABLE auth_keys
|
||||
DROP COLUMN IF EXISTS app_version,
|
||||
DROP COLUMN IF EXISTS api_id,
|
||||
DROP COLUMN IF EXISTS system_version,
|
||||
DROP COLUMN IF EXISTS platform,
|
||||
DROP COLUMN IF EXISTS device_model,
|
||||
DROP COLUMN IF EXISTS layer;
|
||||
7
deploy/migrations/0059_auth_key_client_info.up.sql
Normal file
7
deploy/migrations/0059_auth_key_client_info.up.sql
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
ALTER TABLE auth_keys
|
||||
ADD COLUMN layer integer NOT NULL DEFAULT 0,
|
||||
ADD COLUMN device_model varchar(128) NOT NULL DEFAULT '',
|
||||
ADD COLUMN platform varchar(64) NOT NULL DEFAULT '',
|
||||
ADD COLUMN system_version varchar(64) NOT NULL DEFAULT '',
|
||||
ADD COLUMN api_id integer NOT NULL DEFAULT 0,
|
||||
ADD COLUMN app_version varchar(64) NOT NULL DEFAULT '';
|
||||
Loading…
Add table
Add a link
Reference in a new issue