Skip to content

Commit

Permalink
CORE-17362: Change rbac-creation schema correctly (#1266)
Browse files Browse the repository at this point in the history
* Change schema according to the process in the documentation and rollback previous change
  • Loading branch information
BenYip123 authored Sep 27, 2023
1 parent b4e4474 commit 8132b94
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd">
<include file="net/corda/db/schema/rbac/migration/rbac-creation-v1.0.xml"/>
<include file="net/corda/db/schema/rbac/migration/rbac-creation-v5.1.xml"/>
</databaseChangeLog>
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
<column name="update_ts" type="TIMESTAMP">
<constraints nullable="false"/>
</column>
<column name="actor_user" type="VARCHAR(255)">
<column name="actor_user" type="VARCHAR(36)">
<constraints nullable="false"/>
</column>
<column name="change_type" type="VARCHAR(255)">
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.18.xsd">

<changeSet author="R3.Corda" id="rbac-creation-v5.1">
<modifyDataType tableName="rbac_change_audit" columnName="actor_user" newDataType="VARCHAR(255)"/>
</changeSet>
</databaseChangeLog>

0 comments on commit 8132b94

Please sign in to comment.