mirror of
https://github.com/tiennm99/llmapikey.git
synced 2026-07-13 07:06:13 +00:00
3eda216dc6
Persist the raw key (migration 0002 adds openrouter_key) so users can copy it again from the dashboard instead of a one-time-only reveal; admin console shows the full key. Retain openrouter_key_hash for revocation. Keys remain in the unexposed llmapikey schema (deny-all RLS, server-only direct connection). - activate() stores the raw key; dashboard + generate-key return the full key. - key-display warning updated (no longer shown-once). - admin table renders the full key.
5 lines
252 B
SQL
5 lines
252 B
SQL
-- Rollback for 0002. Drops the stored raw key (revocation still works via
|
|
-- openrouter_key_hash). Run manually against the same DB; Vercel rollback does
|
|
-- not revert the database.
|
|
alter table llmapikey.api_keys drop column if exists openrouter_key;
|