Skip to content

Commit

Permalink
fix:mysql not support DDL init and upgrade warn msg
Browse files Browse the repository at this point in the history
  • Loading branch information
Aries-ckt committed Jan 30, 2024
1 parent 46a6be9 commit 82405dd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dbgpt/app/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,9 @@ def _migration_db_storage(param: "WebServerParameters"):
)
else:
warn_msg = (
"For safety considerations, Mysql Database not support DDL init and upgrade"
"If there are any changes to the table fields in the DBGPT database, it is necessary to compare with the DB-GPT/assets/schema/dbgpt.sql file and manually make the field changes in the MySQL database instance."
"For safety considerations, Mysql Database not support DDL init and upgrade. "
"1.If you are use DB-GPT firstly, please manually execute the following command to initialize, `mysql -h127.0.0.1 -uroot -p{your_password} < ./assets/schema/dbgpt.sql` "
"2.If there are any changes to the table columns in the DBGPT database, it is necessary to compare with the DB-GPT/assets/schema/dbgpt.sql file and manually make the columns changes in the MySQL database instance."
)
logger.warning(warn_msg)

Expand Down

0 comments on commit 82405dd

Please sign in to comment.