fix:数据库表生成列表更新适配新的前端vue3框架

This commit is contained in:
2023-10-18 18:06:35 +08:00
parent a212bf2c94
commit d9a834fb8c
3 changed files with 41 additions and 25 deletions

View File

@@ -11,12 +11,30 @@ dbname="omc_db"
dumpdbdir=${EmsBEDir}/tools/misc
insdir=${EmsBEDir}/database/install
upgdir=${EmsBEDir}/database/upgrade
tables_c=tables_c.lst
tables_s=tables_s.lst
tables_c=tables_c.lst
tables_ic=tables_ic.lst
mysql -h ${host} -P ${port} -u ${user} -p${password} -D ${dbname} -e "show tables ; " > tables.lst
# dump table struct and data
# dump table struct to install dir
while read line
do
table=`echo $line | cut -d " " -f 1`
echo "dump ${table} to install directory"
mysqldump -h ${host} -P ${port} -u ${user} -p${password} -d ${dbname} ${table} > ${insdir}/${table}.sql
done < ${dumpdbdir}/${tables_s}
# dump table struct and data to install dir
while read line
do
table=`echo $line | cut -d " " -f 1`
echo "dump ${table} to install & upgrade directory"
mysqldump -h ${host} -P ${port} -u ${user} -p${password} ${dbname} ${table} > ${insdir}/${table}.sql
done < ${dumpdbdir}/${tables_ic}
# dump table struct and data to upgrade and install dir
while read line
do
table=`echo $line | cut -d " " -f 1`
@@ -25,12 +43,6 @@ while read line
mysqldump -h ${host} -P ${port} -u ${user} -p${password} ${dbname} ${table} > ${upgdir}/${table}.sql
done < ${dumpdbdir}/${tables_c}
# dump table struct
while read line
do
table=`echo $line | cut -d " " -f 1`
echo "dump ${table} to install directory"
mysqldump -h ${host} -P ${port} -u ${user} -p${password} -d ${dbname} ${table} > ${insdir}/${table}.sql
done < ${dumpdbdir}/${tables_s}