add users
This commit is contained in:
parent
c01914736b
commit
ee23b71f0f
12 changed files with 506 additions and 182 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue