2015-09-16 20:57:07 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
2016-02-03 10:20:22 +00:00
|
|
|
<!--
|
|
|
|
~ Copyright 2016 Red Hat, Inc. and/or its affiliates
|
|
|
|
~ and other contributors as indicated by the @author tags.
|
|
|
|
~
|
|
|
|
~ Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
~ you may not use this file except in compliance with the License.
|
|
|
|
~ You may obtain a copy of the License at
|
|
|
|
~
|
|
|
|
~ http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
~
|
|
|
|
~ Unless required by applicable law or agreed to in writing, software
|
|
|
|
~ distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
~ See the License for the specific language governing permissions and
|
|
|
|
~ limitations under the License.
|
|
|
|
-->
|
|
|
|
|
2015-09-16 20:57:07 +00:00
|
|
|
<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 author="mposolda@redhat.com" id="1.6.0">
|
|
|
|
|
2015-10-14 15:45:46 +00:00
|
|
|
<addColumn tableName="REALM">
|
2015-10-16 18:50:48 +00:00
|
|
|
<column name="OFFLINE_SESSION_IDLE_TIMEOUT" type="INT" defaultValueNumeric="0"/>
|
2015-10-15 18:46:08 +00:00
|
|
|
<column name="REVOKE_REFRESH_TOKEN" type="BOOLEAN" defaultValueBoolean="false">
|
|
|
|
<constraints nullable="false"/>
|
|
|
|
</column>
|
2015-10-14 15:45:46 +00:00
|
|
|
</addColumn>
|
|
|
|
|
2015-09-23 10:52:37 +00:00
|
|
|
<addColumn tableName="KEYCLOAK_ROLE">
|
|
|
|
<column name="SCOPE_PARAM_REQUIRED" type="BOOLEAN" defaultValueBoolean="false">
|
2015-09-16 20:57:07 +00:00
|
|
|
<constraints nullable="false"/>
|
|
|
|
</column>
|
|
|
|
</addColumn>
|
|
|
|
|
2015-09-22 12:35:37 +00:00
|
|
|
<addColumn tableName="CLIENT">
|
|
|
|
<column name="ROOT_URL" type="VARCHAR(255)"/>
|
2015-10-14 21:14:19 +00:00
|
|
|
<column name="DESCRIPTION" type="VARCHAR(255)"/>
|
2015-09-22 12:35:37 +00:00
|
|
|
</addColumn>
|
|
|
|
|
2015-09-16 20:57:07 +00:00
|
|
|
<createTable tableName="OFFLINE_USER_SESSION">
|
2015-10-05 14:52:45 +00:00
|
|
|
<column name="USER_SESSION_ID" type="VARCHAR(36)">
|
|
|
|
<constraints nullable="false"/>
|
|
|
|
</column>
|
2015-09-16 20:57:07 +00:00
|
|
|
<column name="USER_ID" type="VARCHAR(36)">
|
|
|
|
<constraints nullable="false"/>
|
|
|
|
</column>
|
2015-10-05 14:52:45 +00:00
|
|
|
<column name="REALM_ID" type="VARCHAR(36)">
|
|
|
|
<constraints nullable="false"/>
|
|
|
|
</column>
|
|
|
|
<column name="LAST_SESSION_REFRESH" type="INT"/>
|
2015-10-23 13:08:07 +00:00
|
|
|
<column name="OFFLINE" type="BOOLEAN" defaultValueBoolean="false">
|
2015-09-16 20:57:07 +00:00
|
|
|
<constraints nullable="false"/>
|
|
|
|
</column>
|
|
|
|
<column name="DATA" type="CLOB"/>
|
|
|
|
</createTable>
|
|
|
|
|
|
|
|
<createTable tableName="OFFLINE_CLIENT_SESSION">
|
|
|
|
<column name="CLIENT_SESSION_ID" type="VARCHAR(36)">
|
|
|
|
<constraints nullable="false"/>
|
|
|
|
</column>
|
|
|
|
<column name="USER_SESSION_ID" type="VARCHAR(36)">
|
|
|
|
<constraints nullable="false"/>
|
|
|
|
</column>
|
|
|
|
<column name="CLIENT_ID" type="VARCHAR(36)">
|
|
|
|
<constraints nullable="false"/>
|
|
|
|
</column>
|
2015-10-23 13:08:07 +00:00
|
|
|
<column name="OFFLINE" type="BOOLEAN" defaultValueBoolean="false">
|
2015-10-05 14:52:45 +00:00
|
|
|
<constraints nullable="false"/>
|
|
|
|
</column>
|
2015-10-15 18:46:08 +00:00
|
|
|
<column name="TIMESTAMP" type="INT"/>
|
2015-09-16 20:57:07 +00:00
|
|
|
<column name="DATA" type="CLOB"/>
|
|
|
|
</createTable>
|
|
|
|
|
2015-10-23 13:08:07 +00:00
|
|
|
<addPrimaryKey columnNames="USER_SESSION_ID, OFFLINE" constraintName="CONSTRAINT_OFFLINE_US_SES_PK" tableName="OFFLINE_USER_SESSION"/>
|
|
|
|
<addPrimaryKey columnNames="CLIENT_SESSION_ID, OFFLINE" constraintName="CONSTRAINT_OFFLINE_CL_SES_PK" tableName="OFFLINE_CLIENT_SESSION"/>
|
2015-09-16 20:57:07 +00:00
|
|
|
</changeSet>
|
|
|
|
</databaseChangeLog>
|