debug fix v16

This commit is contained in:
Ivan Nikolaev-Axenov 2025-05-30 17:19:40 +03:00
parent 4a997ce387
commit f3e2f8de92

View file

@ -117,8 +117,10 @@ def combine_ddl_updates_into_file():
logging.info(f"Combining DDLs...")
pattern = re.compile(r'updateDDL_(\d+)\.(\d+)\.sql$')
logging.info(f"Currently found files = {os.listdir(f'{CLR_TEST_DIR}/clearing-all/db')}")
files = []
for filepath in glob(f"{CLR_TEST_DIR}/db/updateDDL_*.sql"):
for filepath in glob(f"{CLR_TEST_DIR}/clearing-all/db/updateDDL_*.sql"):
filename = os.path.basename(filepath)
match = pattern.search(filename)
if match:
@ -127,6 +129,7 @@ def combine_ddl_updates_into_file():
files.append(((major, minor), filepath))
files.sort(key=lambda x: x[0])
logging.info(f"Found files: {files}")
with open(f"{CLR_TEST_DIR}/db-updater/combined_update_ddl.sql", 'w', encoding='utf-8') as outfile:
for version, filepath in files: