debug fix

This commit is contained in:
Ivan Nikolaev-Axenov 2025-05-30 11:35:05 +03:00
parent 7c7c1a98b6
commit 73751ed456
2 changed files with 5 additions and 0 deletions

View file

@ -4,4 +4,6 @@ ADD combined_update_ddl.sql /init.sql
RUN apk add --update --no-cache postgresql-client
RUN ls
CMD [ "sh", "-c", "psql -U clearing -h db -p 5432 -d clearing -f init.sql" ]

View file

@ -111,6 +111,7 @@ def stop_docker_compose() -> None:
def combine_ddl_updates_into_file():
logging.info(f"Combining DDLs...")
pattern = re.compile(r'updateDDL_(\d+)\.(\d+)\.sql$')
files = []
@ -130,6 +131,8 @@ def combine_ddl_updates_into_file():
content = infile.read().rstrip('\n')
outfile.write(content + '\n\n')
logging.info(f"Result: {os.listdir(f'{CLR_TEST_DIR}/db-updater')}")
def main() -> None:
folders = [i for i in sorted(os.listdir(DATA_ROOT_DIR)) if re.search("\\d{1,}.\\d{1,}.*", i)]