1
0
mirror of https://github.com/quay/quay.git synced 2026-01-26 06:21:37 +03:00
Files
quay/util/config/database.py
Kenny Lee Sin Cheong d48df9b251 chore: deprecate image table support (PROJQUAY-522) (#1841)
Remove code related to deprecated image table
2023-06-14 10:54:54 -04:00

12 lines
333 B
Python

from data import model
def sync_database_with_config(config):
"""
This ensures all implicitly required reference table entries exist in the database.
"""
location_names = list(config.get("DISTRIBUTED_STORAGE_CONFIG", {}).keys())
if location_names:
model.storage.ensure_image_locations(*location_names)