diff --git a/misc/importdb.sh b/misc/importdb.sh index dc4a3e15..21320cfc 100644 --- a/misc/importdb.sh +++ b/misc/importdb.sh @@ -144,4 +144,11 @@ for ne_type in ${ne_types}; do if [ $? = 0 ]; then echo "done" 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 \ No newline at end of file