We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64bf0f5 commit 8793154Copy full SHA for 8793154
backend/alembic/versions/061_assistant_oid_ddl.py
@@ -31,7 +31,9 @@ def upgrade():
31
try:
32
config = json.loads(row.configuration) if isinstance(row.configuration, str) else row.configuration
33
oid_value = config.get('oid', 1) if isinstance(config, dict) else 1
34
- if isinstance(oid_value, int) and oid_value != 1:
+ if oid_value != 1:
35
+ if not isinstance(oid_value, int):
36
+ oid_value = int(oid_value)
37
conn.execute(
38
sa.text("UPDATE sys_assistant SET oid = :oid WHERE id = :id"),
39
{"oid": oid_value, "id": row.id}
0 commit comments