Skip to content

Commit

Permalink
Add distributed_lock table
Browse files Browse the repository at this point in the history
  • Loading branch information
samanehsan committed Feb 29, 2024
1 parent 73fd8a2 commit 6c996e9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
databaseChangeLog:
- changeSet:
id: "add_fence_account_key_table"
id: "add_fence_account_key_and_dist_lock_table"
author: sehsan
changes:
- createTable:
Expand All @@ -23,8 +23,23 @@ databaseChangeLog:
type: timestamp
constraints:
nullable: false
- createTable:
tableName: distributed_lock
columns:
- column:
name: lock_name
type: text
constraints:
primaryKey: true
primaryKeyName: pk_dist_lock
- column:
name: update_lock_timeout
name: user_id
type: text
constraints:
primaryKey: true
primaryKeyName: pk_dist_lock
- column:
name: expires_at
type: timestamp
constraints:
nullable: false
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ databaseChangeLog:
file: changesets/20220412_add_last_encrypt_timestamp_to_ssh_key_pair_table.yaml
relativeToChangelogFile: true
- include:
file: changesets/20240228_add_fence_account_key_table.yaml
file: changesets/20240228_add_fence_account_key_and_dist_lock_table.yaml
relativeToChangelogFile: true

0 comments on commit 6c996e9

Please sign in to comment.