Aug 21 - MT22 logo seam fix
This commit is contained in:
@@ -183,6 +183,20 @@ def collect_referenced(db_uri):
|
||||
for rid, photo_path in rows:
|
||||
add(photo_path, f'inspection_result:{rid}:photo_path',
|
||||
'inspection_result.photo_path')
|
||||
|
||||
# --- TenantSettings: branding logo (MT-22) ---
|
||||
# The logo was written straight to disk before MT-22, so it was
|
||||
# never part of this inventory and would have been left behind at
|
||||
# R2 cutover — a tenant flipping to s3 would lose its logo.
|
||||
# Tolerant of the table being absent: tenants provisioned before
|
||||
# MT-7 have no tenant_settings.
|
||||
try:
|
||||
rows = conn.execute(text('SELECT id, logo_url FROM tenant_settings'))
|
||||
for rid, logo_url in rows:
|
||||
add(logo_url, f'tenant_settings:{rid}:logo_url',
|
||||
'tenant_settings.logo_url')
|
||||
except Exception:
|
||||
pass
|
||||
finally:
|
||||
engine.dispose()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user