Files
songquanpeng--one-api/bin/migration_v0.2-v0.3.sql
wehub-resource-sync f6211b6268
CI / Unit tests (push) Has been cancelled
CI / commit_lint (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:37:24 +08:00

7 lines
118 B
SQL

UPDATE users
SET quota = quota + (
SELECT SUM(remain_quota)
FROM tokens
WHERE tokens.user_id = users.id
)