Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9537e474
authored
May 16, 2023
by
JustSong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: add database migration script
parent
bcb4862a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
README.md
+3
-0
bin/migration_v0.2-v0.3.sql
+6
-0
No files found.
README.md
View file @
9537e474
...
@@ -40,6 +40,9 @@ _✨ All in one 的 OpenAI 接口,整合各种 API 访问方式,开箱即用
...
@@ -40,6 +40,9 @@ _✨ All in one 的 OpenAI 接口,整合各种 API 访问方式,开箱即用
<a
href=
"https://openai.justsong.cn/"
>
在线演示
</a>
<a
href=
"https://openai.justsong.cn/"
>
在线演示
</a>
</p>
</p>
> **Warning**:从 `v0.2` 版本升级到 `v0.3` 版本需要手动迁移数据库,请手动执行[数据库迁移脚本](./bin/migration_v0.2-v0.3.sql)。
## 功能
## 功能
1.
支持多种 API 访问渠道,欢迎 PR 或提 issue 添加更多渠道:
1.
支持多种 API 访问渠道,欢迎 PR 或提 issue 添加更多渠道:
+
[
x
]
OpenAI 官方通道
+
[
x
]
OpenAI 官方通道
...
...
bin/migration_v0.2-v0.3.sql
0 → 100644
View file @
9537e474
UPDATE
users
SET
quota
=
quota
+
(
SELECT
SUM
(
remain_quota
)
FROM
tokens
WHERE
tokens
.
user_id
=
users
.
id
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment