From 662279e8b2cb79a03864f84fdf799f0489fdfc7b Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 7 Jan 2021 17:33:07 -0300 Subject: Partial upgrade to v2020.01.12 --- tools/checksql.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 tools/checksql.sh (limited to 'tools/checksql.sh') diff --git a/tools/checksql.sh b/tools/checksql.sh new file mode 100755 index 000000000..f7fb23700 --- /dev/null +++ b/tools/checksql.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +function checkdir { + for sql in $1/*.sql + do + echo "checking ${sql}" + php -d memory_limit=4G ./tools/php-sqllint/bin/php-sqllint "${sql}" || exit 1 + done +} + +checkdir "sql-files" +checkdir "sql-files/upgrades" +checkdir "sql-files/tools" -- cgit v1.2.3-70-g09d2