Skip to content

Commit

Permalink
fix: typo error
Browse files Browse the repository at this point in the history
  • Loading branch information
csunny committed Jan 30, 2024
1 parent 2dfca95 commit df85500
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions dbgpt/app/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ def _migration_db_storage(param: "WebServerParameters"):
from dbgpt.storage.metadata.db_manager import db
from dbgpt.util._db_migration_utils import _ddl_init_and_upgrade

# try to create all tables
# Try to create all tables, when the dbtype is sqlite, it will auto create and upgrade system schema,
# Otherwise, you need to execute initialization scripts to create schemas.
CFG = Config()
if CFG.LOCAL_DB_TYPE == "sqlite":
try:
Expand All @@ -119,7 +120,7 @@ def _migration_db_storage(param: "WebServerParameters"):
default_meta_data_path, param.disable_alembic_upgrade
)
else:
warn_msg = """For safety considerations, Mysql Database not support DDL init and upgrade. "
warn_msg = """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 DB-GPT database,
Expand All @@ -133,7 +134,7 @@ def _initialize_db(
) -> str:
"""Initialize the database
Now just support sqlite and mysql. If db type is sqlite, the db path is `pilot/meta_data/{db_name}.db`.
Now just support sqlite and MySQL. If db type is sqlite, the db path is `pilot/meta_data/{db_name}.db`.
"""
from urllib.parse import quote
from urllib.parse import quote_plus as urlquote
Expand Down

0 comments on commit df85500

Please sign in to comment.