META-INF.dk.grinn.keycloak.migrate.01-initial.xml Maven / Gradle / Ivy
<?xml version="1.0" 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-3.1.xsd"> <!-- --> <changeSet id="1" author="Kim Jersin"> <createTable tableName="gkcadm_realm_history_lock"> <column name="id" type="int" autoIncrement="true"> <constraints nullable="false" primaryKey="true"/> </column> <column name="realm" type="java.sql.Types.VARCHAR(191)"> <constraints nullable="false" unique="true"/> </column> <column name="session" type="BINARY(16)"> <constraints nullable="true"/> </column> <column name="lock_granted" type="DATETIME"> <constraints nullable="true"/> </column> <column name="locked_by" type="java.sql.Types.VARCHAR(191)"> <constraints nullable="true"/> </column> <column name="current_rank" type="int" defaultValueNumeric="0"> <constraints nullable="false"/> </column> </createTable> <createIndex tableName="gkcadm_realm_history_lock" indexName="idx_session"> <column name="session"/> </createIndex> <insert tableName="gkcadm_realm_history_lock"> <column name="realm" value="master"/> </insert> <createTable tableName="gkcadm_realm_history"> <column name="id" type="int"> <constraints nullable="false"/> </column> <column name="installed_rank" type="int"> <constraints nullable="false"/> </column> <column name="version" type="java.sql.Types.VARCHAR(191)" remarks="The unparsed version string part of the migration name"> <constraints nullable="true"/> </column> <column name="description" type="java.sql.Types.VARCHAR(191)" remarks="Migration description"> <constraints nullable="false"/> </column> <column name="type" type="java.sql.Types.VARCHAR(8)" remarks="Type of the migration"> <constraints nullable="false"/> </column> <column name="script" type="java.sql.Types.VARCHAR(4096)" remarks="The script. For type=REALM: list of realms, type=JAVA: filename"> <constraints nullable="true"/> </column> <column name="checksum" type="BIGINT"> <constraints nullable="true"/> </column> <column name="execution_time" type="int"> <constraints nullable="true"/> </column> <column name="installed_on" type="DATETIME"> <constraints nullable="false"/> </column> <column name="installed_by" type="java.sql.Types.VARCHAR(191)"> <constraints nullable="false"/> </column> </createTable> <addPrimaryKey tableName="gkcadm_realm_history" columnNames="id,installed_rank"/> <addForeignKeyConstraint constraintName="fk_lock_id" baseTableName="gkcadm_realm_history" baseColumnNames="id" referencedTableName="gkcadm_realm_history_lock" referencedColumnNames="id"/> </changeSet> </databaseChangeLog>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy