Skip to content

Commit

Permalink
adds key name to api keys
Browse files Browse the repository at this point in the history
  • Loading branch information
nickzelei committed Nov 10, 2023
1 parent 0d1b0ea commit 2f7cfae
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ALTER TABLE neosync_api.account_api_keys
DROP CONSTRAINT account_api_keys_account_id_key_name;

ALTER TABLE neosync_api.account_api_keys
DROP COLUMN key_name;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ALTER TABLE neosync_api.account_api_keys
ADD COLUMN key_name text NOT NULL;

ALTER TABLE neosync_api.account_api_keys
ADD CONSTRAINT account_api_keys_account_id_key_name UNIQUE(account_id, key_name);

0 comments on commit 2f7cfae

Please sign in to comment.