All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.jpa-changelog-phasetwo-20211208.xml Maven / Gradle / Ivy

There is a newer version: 0.79
Show newest version
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd">

  <changeSet author="garth" id="drop-column-user-org-role-org-0">
    <validCheckSum>8:7776fbcd4917bc8d6110eedb5a638479</validCheckSum>
    <preConditions onFail="MARK_RAN">
        <not>
          <or>
            <dbms type="mysql"/>
            <dbms type="mariadb"/>
          </or>
        </not>
    </preConditions>
    <dropUniqueConstraint
            constraintName="UK_S5FNFVSRU9I4QPH9GB8V4FXFM"
            tableName="USER_ORGANIZATION_ROLE_MAPPING"
            uniqueColumns="ORGANIZATION_ID, USER_ID, ROLE_ID"/>
  </changeSet>

  <!-- mysql/mariadb specific -->
  <changeSet author="garth" id="drop-column-user-org-role-org-0-1">
    <preConditions onFail="MARK_RAN">
      <or>
        <dbms type="mysql"/>
        <dbms type="mariadb"/>
      </or>
    </preConditions>
    <dropForeignKeyConstraint baseTableName="USER_ORGANIZATION_ROLE_MAPPING" constraintName="FK_HGF6S4UUNYWDKP4244YTNGBAD"/>
    <dropUniqueConstraint
            constraintName="UK_S5FNFVSRU9I4QPH9GB8V4FXFM"
            tableName="USER_ORGANIZATION_ROLE_MAPPING"
            uniqueColumns="ORGANIZATION_ID, USER_ID, ROLE_ID"/>
  </changeSet>

  <changeSet author="garth" id="drop-column-user-org-role-org-1">
    <dropColumn tableName="USER_ORGANIZATION_ROLE_MAPPING">
      <column  name="ORGANIZATION_ID"/>
    </dropColumn>
  </changeSet>

  <changeSet author="garth" id="drop-column-user-org-role-org-2">
    <addUniqueConstraint columnNames="USER_ID, ROLE_ID" constraintName="UK_S5FKFVSRU5I4QPHP8V8V4XXAM" tableName="USER_ORGANIZATION_ROLE_MAPPING"/>
  </changeSet>

</databaseChangeLog>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy