META-INF.jpa-changelog-phasetwo-20200220.xml Maven / Gradle / Ivy
<?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 (generated)" id="1582221689607-1"> <createTable tableName="INVITATION"> <column name="ID" type="VARCHAR(36)"> <constraints nullable="false"/> </column> <column name="CREATED_AT" type="TIMESTAMP"/> <column name="EMAIL" type="VARCHAR(255)"/> <column name="INVITER_ID" type="VARCHAR(255)"/> <column name="URL" type="VARCHAR(255)"/> <column name="ORGANIZATION_ID" type="VARCHAR(36)"/> </createTable> </changeSet> <changeSet author="garth (generated)" id="1582221689607-2"> <createTable tableName="INVITATION_TEAM"> <column name="INVITATION_ID" type="VARCHAR(36)"> <constraints nullable="false"/> </column> <column name="teams_ID" type="VARCHAR(36)"> <constraints nullable="false"/> </column> </createTable> </changeSet> <changeSet author="garth (generated)" id="1582221689607-3"> <createTable tableName="ORGANIZATION"> <column name="ID" type="VARCHAR(36)"> <constraints nullable="false"/> </column> <column name="NAME" type="NVARCHAR(255)"/> <column name="REALM_ID" type="VARCHAR(255)"/> </createTable> </changeSet> <changeSet author="garth (generated)" id="1582221689607-4"> <createTable tableName="ORGANIZATION_ATTRIBUTE"> <column name="ID" type="VARCHAR(36)"> <constraints nullable="false"/> </column> <column name="NAME" type="VARCHAR(255)"/> <column name="VALUE" type="NVARCHAR(255)"/> <column name="ORGANIZATION_ID" type="VARCHAR(36)"/> </createTable> </changeSet> <changeSet author="garth (generated)" id="1582221689607-5"> <createTable tableName="ORGANIZATION_MEMBER"> <column name="ID" type="VARCHAR(36)"> <constraints nullable="false"/> </column> <column name="CREATED_AT" type="TIMESTAMP"/> <column name="USER_ID" type="VARCHAR(255)"/> <column name="ORGANIZATION_ID" type="VARCHAR(36)"/> </createTable> </changeSet> <changeSet author="garth (generated)" id="1582221689607-6"> <createTable tableName="TEAM"> <column name="ID" type="VARCHAR(36)"> <constraints nullable="false"/> </column> <column name="NAME" type="NVARCHAR(255)"/> <column name="ORGANIZATION_ID" type="VARCHAR(36)"/> </createTable> </changeSet> <changeSet author="garth (generated)" id="1582221689607-7"> <createTable tableName="TEAM_ATTRIBUTE"> <column name="ID" type="VARCHAR(36)"> <constraints nullable="false"/> </column> <column name="NAME" type="VARCHAR(255)"/> <column name="VALUE" type="NVARCHAR(255)"/> <column name="TEAM_ID" type="VARCHAR(36)"/> </createTable> </changeSet> <changeSet author="garth (generated)" id="1582221689607-8"> <createTable tableName="TEAM_MEMBER"> <column name="ID" type="VARCHAR(36)"> <constraints nullable="false"/> </column> <column name="CREATED_AT" type="TIMESTAMP"/> <column name="USER_ID" type="VARCHAR(255)"/> <column name="TEAM_ID" type="VARCHAR(36)"/> </createTable> </changeSet> <changeSet author="garth (generated)" id="1582221689607-9"> <addPrimaryKey columnNames="ID" constraintName="INVITATIONPK" tableName="INVITATION"/> </changeSet> <changeSet author="garth (generated)" id="1582221689607-10"> <addPrimaryKey columnNames="ID" constraintName="ORGANIZATIONPK" tableName="ORGANIZATION"/> </changeSet> <changeSet author="garth (generated)" id="1582221689607-11"> <addPrimaryKey columnNames="ID" constraintName="ORGANIZATION_ATTRIBUTEPK" tableName="ORGANIZATION_ATTRIBUTE"/> </changeSet> <changeSet author="garth (generated)" id="1582221689607-12"> <addPrimaryKey columnNames="ID" constraintName="ORGANIZATION_MEMBERPK" tableName="ORGANIZATION_MEMBER"/> </changeSet> <changeSet author="garth (generated)" id="1582221689607-13"> <addPrimaryKey columnNames="ID" constraintName="TEAMPK" tableName="TEAM"/> </changeSet> <changeSet author="garth (generated)" id="1582221689607-14"> <addPrimaryKey columnNames="ID" constraintName="TEAM_ATTRIBUTEPK" tableName="TEAM_ATTRIBUTE"/> </changeSet> <changeSet author="garth (generated)" id="1582221689607-15"> <addPrimaryKey columnNames="ID" constraintName="TEAM_MEMBERPK" tableName="TEAM_MEMBER"/> </changeSet> <changeSet author="garth (generated)" id="1582221689607-16"> <addUniqueConstraint columnNames="teams_ID" constraintName="UK_lhea5u4vqt3n9694kq7hyl5at" tableName="INVITATION_TEAM"/> </changeSet> <changeSet author="garth (generated)" id="1582221689607-17"> <addUniqueConstraint columnNames="ORGANIZATION_ID, EMAIL" constraintName="UK_lt3so1uv0pa7it6j7p9683oj4" tableName="INVITATION"/> </changeSet> <changeSet author="garth (generated)" id="1582221689607-18"> <addUniqueConstraint columnNames="REALM_ID, NAME" constraintName="UK_oht0oelmvemnqxwn3aj6maw6a" tableName="ORGANIZATION"/> </changeSet> <changeSet author="garth (generated)" id="1582221689607-19"> <addUniqueConstraint columnNames="ORGANIZATION_ID, NAME" constraintName="UK_th5mtjgw7jhxyjft8alqgdbiy" tableName="TEAM"/> </changeSet> <changeSet author="garth (generated)" id="1582221689607-20"> <addForeignKeyConstraint baseColumnNames="ORGANIZATION_ID" baseTableName="ORGANIZATION_ATTRIBUTE" constraintName="FK_519erdjtqivq189pm1ouanaix" deferrable="false" initiallyDeferred="false" referencedColumnNames="ID" referencedTableName="ORGANIZATION"/> </changeSet> <changeSet author="garth (generated)" id="1582221689607-21"> <addForeignKeyConstraint baseColumnNames="TEAM_ID" baseTableName="TEAM_MEMBER" constraintName="FK_6ntjb7ds3m2cxgm08drxbcac8" deferrable="false" initiallyDeferred="false" referencedColumnNames="ID" referencedTableName="TEAM"/> </changeSet> <changeSet author="garth (generated)" id="1582221689607-22"> <addForeignKeyConstraint baseColumnNames="TEAM_ID" baseTableName="TEAM_ATTRIBUTE" constraintName="FK_90avvlr99du3t58yefyi4c3jo" deferrable="false" initiallyDeferred="false" referencedColumnNames="ID" referencedTableName="TEAM"/> </changeSet> <changeSet author="garth (generated)" id="1582221689607-23"> <addForeignKeyConstraint baseColumnNames="ORGANIZATION_ID" baseTableName="ORGANIZATION_MEMBER" constraintName="FK_ci1r3v25slrartnlj0bd6wl0j" deferrable="false" initiallyDeferred="false" referencedColumnNames="ID" referencedTableName="ORGANIZATION"/> </changeSet> <changeSet author="garth (generated)" id="1582221689607-24"> <addForeignKeyConstraint baseColumnNames="ORGANIZATION_ID" baseTableName="INVITATION" constraintName="FK_i4hnhwdvcobe55ohfwneyh6m4" deferrable="false" initiallyDeferred="false" referencedColumnNames="ID" referencedTableName="ORGANIZATION"/> </changeSet> <changeSet author="garth (generated)" id="1582221689607-25"> <addForeignKeyConstraint baseColumnNames="teams_ID" baseTableName="INVITATION_TEAM" constraintName="FK_lhea5u4vqt3n9694kq7hyl5at" deferrable="false" initiallyDeferred="false" referencedColumnNames="ID" referencedTableName="TEAM"/> </changeSet> <changeSet author="garth (generated)" id="1582221689607-26"> <addForeignKeyConstraint baseColumnNames="ORGANIZATION_ID" baseTableName="TEAM" constraintName="FK_nfvcyxo3xogkp5go7057orvev" deferrable="false" initiallyDeferred="false" referencedColumnNames="ID" referencedTableName="ORGANIZATION"/> </changeSet> <changeSet author="garth (generated)" id="1582221689607-27"> <addForeignKeyConstraint baseColumnNames="INVITATION_ID" baseTableName="INVITATION_TEAM" constraintName="FK_t6n7td7bgbuqyu9u29qxgli1e" deferrable="false" initiallyDeferred="false" referencedColumnNames="ID" referencedTableName="INVITATION"/> </changeSet> </databaseChangeLog>