fix: no create the kpi_c_report for NE

This commit is contained in:
2024-09-27 18:41:29 +08:00
parent 1db07551e7
commit 41693db39e

View File

@@ -144,4 +144,11 @@ for ne_type in ${ne_types}; do
if [ $? = 0 ]; then if [ $? = 0 ]; then
echo "done" echo "done"
fi fi
TABLE_NAME="kpi_c_report_${ne_type}"
SQL="CREATE TABLE IF NOT EXISTS ${TABLE_NAME} LIKE \`kpi_c_report\`;"
echo -n "Create table: ${TABLE_NAME} ..."
mysql -u${USER} -p${PASSWORD} -P ${PORT} -h ${HOST} --protocol tcp -D ${DBNAME} -e "${SQL}"
if [ $? = 0 ]; then
echo "done"
fi
done done