|
123456789101112131415161718192021 |
- #!/bin/bash
-
-
-
- Table=*
- TName=""
- if [ "$1" ] ;then
- Table=$1
- TName="^$1$"
- fi
-
- BasePath="./"
- DBUSER="root"
- DBPSW="Fnuo123com@"
- DBNAME="fnuoos_test1"
- DBHOST="119.23.182.117"
- DBPORT="3306"
-
- rm -rf $BasePath/app/db/model/$Table.go && \
-
- xorm reverse mysql "$DBUSER:$DBPSW@tcp($DBHOST:$DBPORT)/$DBNAME?charset=utf8" $BasePath/etc/db_tpl $BasePath/app/db/model/ $TName
|