diff --git a/assets/wechat.jpg b/assets/wechat.jpg index 8c13e2dd5..e15b95293 100644 Binary files a/assets/wechat.jpg and b/assets/wechat.jpg differ diff --git a/dbgpt/_version.py b/dbgpt/_version.py index 819a3005a..abe1e1c01 100644 --- a/dbgpt/_version.py +++ b/dbgpt/_version.py @@ -1 +1 @@ -version = "0.5.0" +version = "0.5.1" diff --git a/docs/docs/upgrade/v0.5.1.md b/docs/docs/upgrade/v0.5.1.md new file mode 100644 index 000000000..21f392332 --- /dev/null +++ b/docs/docs/upgrade/v0.5.1.md @@ -0,0 +1,30 @@ +# Upgrade To v0.5.1 + +## Overview + +This guide is for upgrading from v0.5.0 to v0.5.1. If you use SQLite, +you not need to upgrade the database. If you use MySQL, you need to upgrade the database. + +## Prepare + +### Backup Your Database + +To prevent data loss, it is recommended to back up your database before upgrading. +The backup way according to your database type. + +## Upgrade + +### Stop DB-GPT Service + +Stop the DB-GPT service according to your start way. + +### Upgrade Database + +Execute the following SQL to upgrade the database. + +**Add Columns** +```sql +USE dbgpt; +ALTER TABLE dbgpt_serve_flow + ADD COLUMN `error_message` varchar(512) null comment 'Error message' after `state`; +``` diff --git a/docs/sidebars.js b/docs/sidebars.js index 7f94919d8..ecb2dbec6 100755 --- a/docs/sidebars.js +++ b/docs/sidebars.js @@ -470,6 +470,9 @@ const sidebars = { { type: 'doc', id: 'upgrade/v0.5.0', + }, { + type: 'doc', + id: 'upgrade/v0.5.1', }, ], }, diff --git a/setup.py b/setup.py index 3acdb9252..1d7af0bcb 100644 --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ IS_DEV_MODE = os.getenv("IS_DEV_MODE", "true").lower() == "true" # If you modify the version, please modify the version in the following files: # dbgpt/_version.py -DB_GPT_VERSION = os.getenv("DB_GPT_VERSION", "0.5.0") +DB_GPT_VERSION = os.getenv("DB_GPT_VERSION", "0.5.1") BUILD_NO_CACHE = os.getenv("BUILD_NO_CACHE", "true").lower() == "true" LLAMA_CPP_GPU_ACCELERATION = (