fix: make chat session deletion server controlled (#19)

This commit is contained in:
732642856
2026-07-21 11:03:34 +08:00
committed by GitHub
parent f644f3b5c0
commit e3d619c2a7
5 changed files with 53 additions and 5 deletions
@@ -47,6 +47,7 @@ jobs:
frontend/supabase/migrations/20260718102000_recover_missing_profile_rows.sql \
frontend/supabase/migrations/20260718103000_profile_birth_time_declaration_grants.sql \
frontend/supabase/migrations/20260718104000_chart_profiles_upsert_id_grant.sql \
frontend/supabase/migrations/20260721100000_chat_sessions_delete_grant.sql \
"$DEPLOY_USER@$DEPLOY_HOST:$DEPLOY_PATH/tmp/profile-migrations/"
- name: Apply profile migrations using VPS database URL
@@ -76,7 +77,8 @@ jobs:
tmp/profile-migrations/20260718100000_repair_missing_chart_profiles.sql \
tmp/profile-migrations/20260718102000_recover_missing_profile_rows.sql \
tmp/profile-migrations/20260718103000_profile_birth_time_declaration_grants.sql \
tmp/profile-migrations/20260718104000_chart_profiles_upsert_id_grant.sql
tmp/profile-migrations/20260718104000_chart_profiles_upsert_id_grant.sql \
tmp/profile-migrations/20260721100000_chat_sessions_delete_grant.sql
do
echo "applying $(basename "$SQL_FILE")"
cat "$SQL_FILE" | docker run --rm -i postgres:16-alpine \