Skip to content
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.

Commit

Permalink
Error migrating CUBA project:sec_user_substitution table already ex…
Browse files Browse the repository at this point in the history
…ists #87
  • Loading branch information
knstvk committed Sep 29, 2021
1 parent e54cd5a commit 7732bb3
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,20 @@
</insert>
</changeSet>

<changeSet id="60" author="migrator" context="cuba and !migrated">
<validCheckSum>1:any</validCheckSum>
<addColumn tableName="SEC_USER_SUBSTITUTION">
<column name="USERNAME" type="varchar(255)"/>
<column name="SUBSTITUTED_USERNAME" type="varchar(255)"/>
</addColumn>
</changeSet>

<changeSet id="70" author="migrator" context="cuba and !migrated">
<validCheckSum>1:any</validCheckSum>
<update tableName="SEC_USER_SUBSTITUTION">
<column name="USERNAME" valueComputed="(select u.USERNAME from SEC_USER u where u.ID = USER_ID)"/>
<column name="SUBSTITUTED_USERNAME" valueComputed="(select u.USERNAME from SEC_USER u where u.ID = SUBSTITUTED_USER_ID)"/>
</update>
</changeSet>

</databaseChangeLog>

0 comments on commit 7732bb3

Please sign in to comment.