528f56254d
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (push) Successful in 2s
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 3s
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (pull_request) Successful in 3s
CI/CD Pipeline / Check push changed paths (push) Successful in 8s
CI/CD Pipeline / PR Build Web Image (pull_request) Successful in 20s
CI/CD Pipeline / PR Build API Image (pull_request) Successful in 21s
CI/CD Pipeline / PR Build Worker Image (pull_request) Successful in 23s
CI/CD Pipeline / Build Staging API Image (push) Successful in 17s
CI/CD Pipeline / Build Staging Web Image (push) Successful in 23s
CI/CD Pipeline / Build Staging Worker Image (push) Successful in 33s
CI/CD Pipeline / Production Browser E2E (pull_request) Has been skipped
CI/CD Pipeline / Validate - Python (mypy + alembic) (push) Successful in 2m0s
CI/CD Pipeline / Integration Tests (push) Successful in 2m17s
CI/CD Pipeline / Validate - Style (push) Successful in 2m28s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Successful in 1m8s
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 2m6s
AI Code Review / AI Code Review (pull_request) Successful in 3m27s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 3m38s
CI/CD Pipeline / ACR Image Cleanup (push) Successful in 1m30s
CI/CD Pipeline / Validate - Security (push) Successful in 4m54s
CI/CD Pipeline / Frontend Unit Tests (push) Successful in 5m17s
CI/CD Pipeline / Staging API Integration Tests (push) Successful in 3m11s
CI/CD Pipeline / Staging E2E Tests (push) Failing after 5m10s
CI/CD Pipeline / Unit Tests (push) Successful in 8m18s
CI/CD Pipeline / Production Browser E2E (push) Has been skipped
CI/CD Pipeline / CI Gate (pull_request) Failing after 11m48s
CI/CD Pipeline / Canary Release to Production (push) Failing after 243h9m2s
CI/CD Pipeline / CI Gate (push) Failing after 243h9m5s
CI/CD Pipeline / Build Production Worker Image (push) Failing after 243h9m5s
CI/CD Pipeline / Build Production Web Image (push) Failing after 243h9m5s
CI/CD Pipeline / Build Production API Image (push) Failing after 243h9m5s
PR Automation / Auto Merge on CI Green + Approved (pull_request) Failing after 243h13m34s
CI/CD Pipeline / Canary Release to Production (pull_request) Failing after 243h16m9s
CI/CD Pipeline / Retag skipped Staging Worker Image (push) Failing after 243h16m10s
CI/CD Pipeline / Retag skipped Staging API Image (push) Failing after 243h16m12s
CI/CD Pipeline / ACR Image Cleanup (pull_request) Failing after 243h16m16s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 243h16m17s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 243h16m19s
CI/CD Pipeline / Build Production API Image (pull_request) Failing after 243h16m46s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Failing after 243h16m40s
CI/CD Pipeline / Retag skipped Staging Worker Image (pull_request) Failing after 243h17m16s
CI/CD Pipeline / Build Production Worker Image (pull_request) Failing after 243h16m43s
CI/CD Pipeline / Retag skipped Staging API Image (pull_request) Failing after 243h17m17s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Failing after 243h17m18s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 243h17m18s
CI/CD Pipeline / Validate - Python (mypy + alembic) (pull_request) Failing after 243h17m19s
CI/CD Pipeline / Integration Tests (pull_request) Failing after 243h17m19s
CI/CD Pipeline / Validate - Security (pull_request) Failing after 243h17m20s
CI/CD Pipeline / Frontend Lint (push) Failing after 243h17m24s
CI/CD Pipeline / Validate - Style (pull_request) Failing after 243h17m20s
CI/CD Pipeline / Build Staging Worker Image (pull_request) Failing after 243h17m25s
CI/CD Pipeline / Build Staging API Image (pull_request) Failing after 243h17m26s
CI/CD Pipeline / PR Build Worker Image (push) Failing after 243h17m26s
CI/CD Pipeline / PR Build Web Image (push) Failing after 243h17m26s
CI/CD Pipeline / Check push changed paths (pull_request) Failing after 243h17m27s
CI/CD Pipeline / Check if frontend-only change (push) Failing after 243h17m28s
CI/CD Pipeline / PR Build API Image (push) Failing after 243h17m27s
CI/CD Pipeline / Deploy Production (push) Failing after 243h43m37s
CI/CD Pipeline / Retag skipped Staging Web Image (push) Failing after 243h50m46s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 243h50m52s
CI/CD Pipeline / Build Production Web Image (pull_request) Failing after 243h51m20s
CI/CD Pipeline / Retag skipped Staging Web Image (pull_request) Failing after 243h51m52s
CI/CD Pipeline / Unit Tests (pull_request) Failing after 243h51m54s
CI/CD Pipeline / Build Staging Web Image (pull_request) Failing after 243h52m0s
Co-authored-by: xiaoxia <dev@xiaoxiajianji.com> Co-committed-by: xiaoxia <dev@xiaoxiajianji.com>
27 lines
672 B
Python
27 lines
672 B
Python
"""add profile_completed to users
|
|
|
|
Issue #1718:微信新用户首次登录需设置昵称(PATCH /auth/me)。
|
|
- users.profile_completed:资料是否已完善;存量行默认 True(不触发引导),
|
|
微信新建用户在应用层置 False。
|
|
"""
|
|
|
|
import sqlalchemy as sa
|
|
|
|
from alembic import op
|
|
|
|
revision = "068_user_profile_completed"
|
|
down_revision = "067_celery_task_id"
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade() -> None:
|
|
op.add_column(
|
|
"users",
|
|
sa.Column("profile_completed", sa.Boolean(), nullable=False, server_default=sa.text("true")),
|
|
)
|
|
|
|
|
|
def downgrade() -> None:
|
|
op.drop_column("users", "profile_completed")
|