Skip to content

Commit

Permalink
CORE-13621 Idempotency id table definition (#1222)
Browse files Browse the repository at this point in the history
* Introduces table in vnode-vault schema which holds executed persistence requests (ids) from `PersistenceService`, to be used for deduplicating them
  • Loading branch information
kyriathar authored Sep 20, 2023
1 parent 5663081 commit 1e00cfd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ private DbSchema() {
public static final String VNODE_GROUP_PARAMETERS = "vnode_group_parameters";
public static final String VNODE_GROUP_APPROVAL_RULES = "vnode_group_approval_rules";
public static final String VNODE_PRE_AUTH_TOKENS = "vnode_pre_auth_tokens";
public static final String VNODE_PERSISTENCE_REQUEST_ID_TABLE = "vnode_persistence_request_id";

public static final String LEDGER_CONSENSUAL_TRANSACTION_TABLE = "consensual_transaction";
public static final String LEDGER_CONSENSUAL_TRANSACTION_STATUS_TABLE = "consensual_transaction_status";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,11 @@
<addColumn tableName="vnode_member_info">
<column name="is_deleted" type="BOOLEAN" defaultValueBoolean="false"/>
</addColumn>

<createTable tableName="vnode_persistence_request_id">
<column name="request_id" type="NVARCHAR(255)">
<constraints nullable="false" primaryKey="true"/>
</column>
</createTable>
</changeSet>
</databaseChangeLog>

0 comments on commit 1e00cfd

Please sign in to comment.