代码拉取完成,页面将自动刷新
同步操作将从 Kaiwenwang/miso-lims开源lims系统 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#!/bin/sh
# Compact all 8xxx migrations into a single migration as part of the release process.
set -eu
cd "$(dirname $0)/sqlstore/src/main/resources/db/migration"
# Determine the last migration in the working directory
LAST="$(basename "$(ls V[0-5][0-9][0-9][0-9]_*.sql | sort | tail -n 1)")"
echo "Previous migration is ${LAST}."
LAST_ID="$(echo "${LAST}" | cut -c 2-5 | sed -e 's/^0*//')"
ID=$(((${LAST_ID} / 10 + 1) * 10))
NEXT="V$(printf "%04d" ${ID})__auto_main.sql"
echo "Next migration will be ${NEXT}."
# Concatenate all the 8xxx files and remove them from git
rm -f "${NEXT}"
for FILE in $(find . -name "V8[0-9][0-9][0-9]_*.sql" | sort)
do
NAME=$(basename "${FILE}" .sql)
echo -- ${NAME#V*__} >> "${NEXT}"
# This sed command forces a newline at the end of the file
sed -e '$a\' "${FILE}" >> "${NEXT}"
echo >> "${NEXT}"
git rm "${FILE}"
done
DANGLING_MIGRATION_COUNT=$(ls | grep "^V8.*" | wc -l)
if [ "$DANGLING_MIGRATION_COUNT" -gt 0 ]; then
echo ""
echo "************* Found migrations with malformed file names. ****************"
ls | grep "^V8.*"
echo "************* You should undo all migration changes before fixing. *******"
exit 1
fi
if [ -f "${NEXT}" ]
then
git add "${NEXT}"
echo "Created migration ${NEXT}."
else
echo "There were no migrations to compact."
fi
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。