summaryrefslogblamecommitdiff
path: root/tools/checksql.sh
blob: f7fb237005e01407d387cb467b42db45468ee645 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
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"