diff --git a/service/src/main/resources/db/changelog/changesets/20240228_add_fence_account_key_table.yaml b/service/src/main/resources/db/changelog/changesets/20240228_add_fence_account_key_table.yaml index b4d77876..63764e7e 100644 --- a/service/src/main/resources/db/changelog/changesets/20240228_add_fence_account_key_table.yaml +++ b/service/src/main/resources/db/changelog/changesets/20240228_add_fence_account_key_table.yaml @@ -24,7 +24,23 @@ databaseChangeLog: constraints: nullable: false - column: - name: update_lock_timeout + name: lock_id + type: text + constraints: + nullable: false + references: distributed_lock(lock_id) + foreignKeyName: fk_lock_id + - createTable: + tableName: distributed_lock + columns: + - column: + name: lock_id + type: text + constraints: + primaryKey: true + nullable: false + - column: + name: expires_at type: timestamp constraints: nullable: false