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

META-INF.jpa-changelog-phasetwo-20211207.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="liquibase-docs" id="dropTable-example">
    <preConditions onFail="MARK_RAN"><tableExists tableName="ORGANIZATION_ROLE"/></preConditions>
    <dropTable cascadeConstraints="true"
               tableName="ORGANIZATION_ROLE"/>
  </changeSet>
  <changeSet author="garth" id="org-role-1">
    <createTable tableName="ORGANIZATION_ROLE">
      <column name="ID" type="VARCHAR(36)">
	<constraints nullable="false" primaryKey="true" primaryKeyName="ORGANIZATION_ROLE_PK"/>
      </column>
      <column name="ORGANIZATION_ID" type="VARCHAR(36)"/>
      <column name="NAME" type="NVARCHAR(255)"/>
    </createTable>
  </changeSet>
  <changeSet author="garth" id="org-role-2">
    <addForeignKeyConstraint baseColumnNames="ORGANIZATION_ID" baseTableName="ORGANIZATION_ROLE" constraintName="FK_dsalfkmadslkfala4wf932f2w" deferrable="false" initiallyDeferred="false" referencedColumnNames="ID" referencedTableName="ORGANIZATION"/>
  </changeSet>
  <changeSet author="garth" id="org-role-3">
    <addForeignKeyConstraint baseColumnNames="ROLE_ID" baseTableName="USER_ORGANIZATION_ROLE_MAPPING" constraintName="FK_123g9nf5findslfksadifu277" deferrable="false" initiallyDeferred="false" referencedColumnNames="ID" referencedTableName="ORGANIZATION_ROLE"/>
  </changeSet>
</databaseChangeLog>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy