fix(auth): agregar email_change/email_change_token_new en setup_first_admin
GoTrue fallaba con "Database error querying schema" al hacer login porque estas dos columnas de auth.users no tienen DEFAULT en este esquema y quedaban NULL — el driver Go espera string, no NULL. Verificado en VPS: login funciona después de este fix. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -29,6 +29,8 @@ WITH new_user AS (
|
|||||||
raw_user_meta_data,
|
raw_user_meta_data,
|
||||||
confirmation_token,
|
confirmation_token,
|
||||||
recovery_token,
|
recovery_token,
|
||||||
|
email_change_token_new,
|
||||||
|
email_change,
|
||||||
is_super_admin
|
is_super_admin
|
||||||
) VALUES (
|
) VALUES (
|
||||||
gen_random_uuid(),
|
gen_random_uuid(),
|
||||||
@@ -44,6 +46,8 @@ WITH new_user AS (
|
|||||||
'{}',
|
'{}',
|
||||||
'',
|
'',
|
||||||
'',
|
'',
|
||||||
|
'',
|
||||||
|
'',
|
||||||
false
|
false
|
||||||
)
|
)
|
||||||
RETURNING id, email
|
RETURNING id, email
|
||||||
|
|||||||
Reference in New Issue
Block a user