Skip to content

Commit

Permalink
Update admin.sh
Browse files Browse the repository at this point in the history
执行migration时,mysql_slow_query_review.sql的路径应该是:  **src/init_sql/mysql_slow_query_review.sql**
  • Loading branch information
blylei authored Dec 9, 2021
1 parent 47218dd commit 46717a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function migration() {
python3 manage.py makemigrations sql
python3 manage.py migrate
python3 manage.py dbshell<sql/fixtures/auth_group.sql
python3 manage.py dbshell<sql/src/init_sql/mysql_slow_query_review.sql
python3 manage.py dbshell<src/init_sql/mysql_slow_query_review.sql
if [ $? == "0" ]; then
echo -e "Migration: [\033[32m ok \033[0m]"
else
Expand Down Expand Up @@ -94,4 +94,4 @@ case "$1" in
echo "Usage: sh admin {init|start|stop|restart|adduser|migration}"
echo "************************************************"
;;
esac
esac

0 comments on commit 46717a0

Please sign in to comment.