mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-02 09:20:22 +08:00
feat: support api key ip restriction rules
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
ALTER TABLE api_keys
|
||||
ADD COLUMN IF NOT EXISTS allowed_ips jsonb NULL;
|
||||
|
||||
ALTER TABLE api_keys
|
||||
ALTER COLUMN allowed_ips TYPE jsonb USING allowed_ips::jsonb;
|
||||
@@ -0,0 +1,5 @@
|
||||
ALTER TABLE api_keys
|
||||
ADD COLUMN IF NOT EXISTS ip_rules jsonb NULL;
|
||||
|
||||
ALTER TABLE api_keys
|
||||
ALTER COLUMN ip_rules TYPE jsonb USING ip_rules::jsonb;
|
||||
Reference in New Issue
Block a user