Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix into dev
gitea/salix/dev There was a failure building this commit
Details
gitea/salix/dev There was a failure building this commit
Details
This commit is contained in:
commit
16afe0e529
|
@ -11,6 +11,12 @@ dump_tables() {
|
|||
|
||||
echo "" > "$DUMPED_FILE"
|
||||
|
||||
TABLES=(
|
||||
util
|
||||
config
|
||||
)
|
||||
dump_tables ${TABLES[@]}
|
||||
|
||||
TABLES=(
|
||||
account
|
||||
role
|
||||
|
|
|
@ -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 \
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue