From 21654d074e7a58a94adb30d3abc0f87a6e0d4085 Mon Sep 17 00:00:00 2001 From: Mykola Malkov Date: Thu, 13 Jul 2023 12:31:18 +0300 Subject: [PATCH] MT#57573 Remove dates substitution It was initially added to reduce the diff on a review but now we automatically merge generated schemes. So no need to do such substitution besides it's dangerous to do such manipulation on sql file. Change-Id: I1e78ebe85e731f6be2f84afdf53c3befbb8d55ef --- build_utils/ngcp-build-schema-files | 4 ---- 1 file changed, 4 deletions(-) diff --git a/build_utils/ngcp-build-schema-files b/build_utils/ngcp-build-schema-files index 40540bf8..c20fc5ed 100755 --- a/build_utils/ngcp-build-schema-files +++ b/build_utils/ngcp-build-schema-files @@ -115,10 +115,6 @@ for schema in "${schemes[@]}"; do -S "${mariadb_dir}/mysqld.sock" \ > "${schema}_triggers.sql" - # We need to replace all other current dates with NOW() function - sed -ri "s/'[[:digit:]]{4}-[[:digit:]]{2}-[[:digit:]]{2} [[:digit:]]{2}:[[:digit:]]{2}:[[:digit:]]{2}'/NOW()/g" \ - "${schema}_data.sql" - cat "${schema}_data.sql" >> "${schema}.sql" rm -f "${schema}_data.sql"