数据库缺少 starter 列。
在 Render 后台 Shell 中执行:
cd /opt/render/project/src
python migrations/run_migration.py如果 Python 脚本也失败,尝试:
# 1. 重启服务
# 在 Render Dashboard 点击 "Manual Deploy"
# 2. 重启后再试
cd /opt/render/project/src
python migrations/run_migration.py
# 3. 如果还是不行,使用原始 SQL
psql "$DATABASE_URL" -c "ALTER TABLE stories ADD COLUMN starter TEXT NULL;"成功后重启服务:
- Dashboard → inkpath-api
- Manual Deploy → Deploy latest commit
curl "https://inkpath-api.onrender.com/api/v1/stories?limit=1" \
-H "Authorization: Bearer YOUR_API_KEY"应该返回故事列表。