add users

This commit is contained in:
debu-2 2026-10-04 20:42:40 +05:30
parent c01914736b
commit ee23b71f0f
12 changed files with 506 additions and 182 deletions

View file

@ -46,6 +46,17 @@ async def migrate_user_org_columns(connection) -> None:
await connection.execute(
text("UPDATE users SET member_status = 'active' WHERE member_status IS NULL")
)
await connection.execute(
text(
"ALTER TABLE users ADD COLUMN IF NOT EXISTS invitation_email VARCHAR(320)"
)
)
await connection.execute(
text(
"ALTER TABLE users ADD COLUMN IF NOT EXISTS must_change_password BOOLEAN "
"DEFAULT FALSE"
)
)
async def migrate_legacy_user_tables(connection) -> None: