debug fix v16
This commit is contained in:
parent
4a997ce387
commit
f3e2f8de92
1 changed files with 4 additions and 1 deletions
|
|
@ -117,8 +117,10 @@ def combine_ddl_updates_into_file():
|
||||||
logging.info(f"Combining DDLs...")
|
logging.info(f"Combining DDLs...")
|
||||||
pattern = re.compile(r'updateDDL_(\d+)\.(\d+)\.sql$')
|
pattern = re.compile(r'updateDDL_(\d+)\.(\d+)\.sql$')
|
||||||
|
|
||||||
|
logging.info(f"Currently found files = {os.listdir(f'{CLR_TEST_DIR}/clearing-all/db')}")
|
||||||
|
|
||||||
files = []
|
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)
|
filename = os.path.basename(filepath)
|
||||||
match = pattern.search(filename)
|
match = pattern.search(filename)
|
||||||
if match:
|
if match:
|
||||||
|
|
@ -127,6 +129,7 @@ def combine_ddl_updates_into_file():
|
||||||
files.append(((major, minor), filepath))
|
files.append(((major, minor), filepath))
|
||||||
|
|
||||||
files.sort(key=lambda x: x[0])
|
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:
|
with open(f"{CLR_TEST_DIR}/db-updater/combined_update_ddl.sql", 'w', encoding='utf-8') as outfile:
|
||||||
for version, filepath in files:
|
for version, filepath in files:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue