feat: 添加章节管理功能以支持清除回忆
- 在数据库模型中新增 is_active 字段,用于标记章节是否启用。 - 添加数据库迁移脚本以更新现有章节,确保默认值为 TRUE。 - 更新章节相关的 API 以仅返回 active 章节,并实现清除章节的功能。 - 在 Android 客户端中实现清除章节的确认弹窗和相应的 API 调用,提升用户体验。
This commit is contained in:
5
.github/workflows/docker-build-deploy.yml
vendored
5
.github/workflows/docker-build-deploy.yml
vendored
@@ -209,6 +209,11 @@ jobs:
|
||||
"docker exec -i life-echo-postgres psql -U $DB_USER -d $DB_NAME" \
|
||||
< api/migrations/fix_chapter_order_index.sql
|
||||
|
||||
echo "添加章节 is_active 字段..."
|
||||
ssh -p $SSH_PORT $SSH_USER@$SSH_HOST \
|
||||
"docker exec -i life-echo-postgres psql -U $DB_USER -d $DB_NAME" \
|
||||
< api/migrations/add_chapter_is_active.sql
|
||||
|
||||
echo "数据库迁移完成"
|
||||
|
||||
- name: Verify deployment
|
||||
|
||||
Reference in New Issue
Block a user