fix(backend): alembic migration SQLite compat + sync push rollback on error

This commit is contained in:
2026-03-13 19:05:35 +02:00
parent 1e96db4d91
commit 165890b07d
2 changed files with 127 additions and 0 deletions

View File

@@ -130,6 +130,7 @@ async def apply_push(
applied += 1
except Exception as exc: # noqa: BLE001
errors.append({"table": table, "id": op.get("id"), "error": str(exc)})
await db.rollback()
await db.commit()
return {"applied": applied, "conflicts": errors}