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
mr11.5
Mykola Malkov 3 years ago
parent fe29811004
commit 21654d074e

@ -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"

Loading…
Cancel
Save