Skip to content

Commit

Permalink
Add linked_account_id to fence_account_key
Browse files Browse the repository at this point in the history
Needed to locate a key based on the user and
provider name.
  • Loading branch information
samanehsan committed Mar 4, 2024
1 parent 0f250c9 commit 09c2d11
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
public interface FenceAccountKey extends WithFenceAccountKey {
Integer getId();

Integer getLinkedAccountId();

Optional<String> getKeyJson();

Timestamp getExpiresAt();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ databaseChangeLog:
constraints:
primaryKey: true
nullable: false
- column:
name: linked_account_id
type: int
constraints:
nullable: false
references: linked_account(id)
foreignKeyName: fk_linked_account_id
- column:
name: key_json
type: text
Expand Down

0 comments on commit 09c2d11

Please sign in to comment.