update version

This commit is contained in:
2025-12-06 14:55:57 -03:00
parent f3cd5663bd
commit a56e051a18
23 changed files with 8766 additions and 1942 deletions

View File

@@ -195,7 +195,7 @@ def primary(
with dyn.transact_writer() as transact:
# Set the old email as non-primary
transact.update(
# Post-migration (users): rename `emails` to `EMAIL`
# Post-migration (users): rename `emails#` to `EMAIL#`
key=KeyPair(user_id, f'emails#{old_email}'),
update_expr=expr,
expr_attr_values={
@@ -206,7 +206,7 @@ def primary(
)
# Set the new email as primary
transact.update(
# Post-migration (users): rename `emails` to `EMAIL`
# Post-migration (users): rename `emails#` to `EMAIL#`
key=KeyPair(user_id, f'emails#{new_email}'),
update_expr=expr,
expr_attr_values={
@@ -243,7 +243,7 @@ def remove(
key=KeyPair('email', email),
)
transact.delete(
# Post-migration (users): rename `emails` to `EMAIL`
# Post-migration (users): rename `emails#` to `EMAIL#`
key=KeyPair(user_id, f'emails#{email}'),
# Delete any email except the primary email
cond_expr='email_primary <> :email_primary',