Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix into dev
gitea/salix/dev There was a failure building this commit Details

This commit is contained in:
Joan Sanchez 2019-04-03 11:35:11 +02:00
commit 16afe0e529
3 changed files with 18 additions and 12 deletions

View File

@ -11,6 +11,12 @@ dump_tables() {
echo "" > "$DUMPED_FILE"
TABLES=(
util
config
)
dump_tables ${TABLES[@]}
TABLES=(
account
role

View File

@ -2,20 +2,20 @@
SCHEMAS=(
account
util
vn2008
vn
edi
bs
bi
pbx
bs
cache
salix
vncontrol
edi
hedera
stock
postgresql
nst
pbx
postgresql
salix
stock
util
vn
vn2008
vncontrol
)
mysqldump \

View File

@ -71,7 +71,7 @@ DB_VERSION=`echo "$GET_VERSION" | mysql --defaults-file="$INI_FILE" --silent --r
echo "[INFO] Current database version: $DB_VERSION"
if [[ ! "$DB_VERSION" =~ ^[0-9]+$ ]]; then
echo "[ERROR] Cannot fetch the database version"
echo "[ERROR] Cannot fetch the database version."
exit 3
fi
@ -93,7 +93,7 @@ for VERSION_DIR in "$DIR/changes/"*; do
done
UPDATE_VERSION="UPDATE util.config SET dbVersion='$DIR_VERSION'"
echo $UPDATE_VERSION | mysql --defaults-file="$INI_FILE"
echo "$UPDATE_VERSION" | mysql --defaults-file="$INI_FILE"
fi
done