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
7d126706
authored
Jun 16, 2025
by
CaIon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
temp
parent
9d3bd127
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
10 deletions
+4
-10
docker-compose.yml
+1
-2
model/main.go
+0
-6
web/src/components/table/ChannelsTable.js
+3
-2
No files found.
docker-compose.yml
View file @
7d126706
version
:
'
3.4'
version
:
'
3.4'
# 兼容旧版docker-compose
services
:
new-api
:
...
...
@@ -16,7 +16,6 @@ services:
-
REDIS_CONN_STRING=redis://redis
-
TZ=Asia/Shanghai
-
ERROR_LOG_ENABLED=true
# 是否启用错误日志记录
# - TIKTOKEN_CACHE_DIR=./tiktoken_cache # 如果需要使用tiktoken_cache,请取消注释
# - SESSION_SECRET=random_string # 多机部署时设置,必须修改这个随机字符串!!!!!!!
# - NODE_TYPE=slave # Uncomment for slave node in multi-node deployment
# - SYNC_FREQUENCY=60 # Uncomment if regular database syncing is needed
...
...
model/main.go
View file @
7d126706
...
...
@@ -216,12 +216,6 @@ func InitLogDB() (err error) {
if
!
common
.
IsMasterNode
{
return
nil
}
//if common.UsingMySQL {
// _, _ = sqlDB.Exec("DROP INDEX idx_channels_key ON channels;") // TODO: delete this line when most users have upgraded
// _, _ = sqlDB.Exec("ALTER TABLE midjourneys MODIFY action VARCHAR(40);") // TODO: delete this line when most users have upgraded
// _, _ = sqlDB.Exec("ALTER TABLE midjourneys MODIFY progress VARCHAR(30);") // TODO: delete this line when most users have upgraded
// _, _ = sqlDB.Exec("ALTER TABLE midjourneys MODIFY status VARCHAR(20);") // TODO: delete this line when most users have upgraded
//}
common
.
SysLog
(
"database migration started"
)
err
=
migrateLOGDB
()
return
err
...
...
web/src/components/table/ChannelsTable.js
View file @
7d126706
...
...
@@ -22,7 +22,8 @@ import {
Clock
,
AlertTriangle
,
Coins
,
Tags
,
Boxes
Tags
,
List
}
from
'lucide-react'
;
import
{
CHANNEL_OPTIONS
,
ITEMS_PER_PAGE
}
from
'../../constants/index.js'
;
...
...
@@ -90,7 +91,7 @@ const ChannelsTable = () => {
shape
=
'circle'
prefixIcon
=
{
<
div
className
=
"flex items-center"
>
<
Boxes
size
=
{
14
}
className
=
"mr-1"
/>
<
List
size
=
{
14
}
className
=
"mr-1"
/>
{
getChannelIcon
(
type
)}
<
/div
>
}
...
...
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