Skip to content

Commit

Permalink
docs: upgrate v0.5.1 doc (#1265)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aries-ckt authored Mar 7, 2024
1 parent 1ad4c39 commit aaaf34d
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dbgpt/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = "0.5.0"
version = "0.5.1"
30 changes: 30 additions & 0 deletions docs/docs/upgrade/v0.5.1.md
Original file line number Diff line number Diff line change
@@ -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`;
```
3 changes: 3 additions & 0 deletions docs/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,9 @@ const sidebars = {
{
type: 'doc',
id: 'upgrade/v0.5.0',
}, {
type: 'doc',
id: 'upgrade/v0.5.1',
},
],
},
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = (
Expand Down

0 comments on commit aaaf34d

Please sign in to comment.