changes
This commit is contained in:
@@ -154,6 +154,24 @@ def ensure_schema_updates(engine: Engine) -> None:
|
||||
"users": {
|
||||
"is_approver": "BOOLEAN",
|
||||
},
|
||||
# Lookups: add legacy fields
|
||||
"group_lookups": {
|
||||
"title": "VARCHAR(200)",
|
||||
},
|
||||
"transaction_types": {
|
||||
"footer_code": "VARCHAR(45)",
|
||||
},
|
||||
# Employees: ensure extended columns from modernized exports
|
||||
"employees": {
|
||||
"first_name": "VARCHAR(50)",
|
||||
"last_name": "VARCHAR(100)",
|
||||
"title": "VARCHAR(100)",
|
||||
"initials": "VARCHAR(10)",
|
||||
"rate_per_hour": "FLOAT",
|
||||
"active": "BOOLEAN",
|
||||
"email": "VARCHAR(100)",
|
||||
"phone": "VARCHAR(20)",
|
||||
},
|
||||
}
|
||||
|
||||
with engine.begin() as conn:
|
||||
|
||||
Reference in New Issue
Block a user