Details
diff --git a/model/jpa/src/main/java/org/keycloak/connections/jpa/updater/JpaUpdaterProvider.java b/model/jpa/src/main/java/org/keycloak/connections/jpa/updater/JpaUpdaterProvider.java
index 255bec4..9c44cf4 100755
--- a/model/jpa/src/main/java/org/keycloak/connections/jpa/updater/JpaUpdaterProvider.java
+++ b/model/jpa/src/main/java/org/keycloak/connections/jpa/updater/JpaUpdaterProvider.java
@@ -12,7 +12,7 @@ public interface JpaUpdaterProvider extends Provider {
public String FIRST_VERSION = "1.0.0.Final";
- public String LAST_VERSION = "1.8.0";
+ public String LAST_VERSION = "1.9.0";
public String getCurrentVersionSql(String defaultSchema);
diff --git a/model/jpa/src/main/resources/META-INF/jpa-changelog-1.9.0.xml b/model/jpa/src/main/resources/META-INF/jpa-changelog-1.9.0.xml
new file mode 100644
index 0000000..02c1423
--- /dev/null
+++ b/model/jpa/src/main/resources/META-INF/jpa-changelog-1.9.0.xml
@@ -0,0 +1,47 @@
+<?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 author="mposolda@redhat.com" id="1.9.0">
+
+ <!-- This is needed for MSSQL :( -->
+ <!-- 1.5 -->
+ <update tableName="REALM">
+ <column name="OTP_POLICY_COUNTER" type="INT" value="0" />
+ <where>OTP_POLICY_COUNTER is NULL</where>
+ </update>
+ <update tableName="REALM">
+ <column name="OTP_POLICY_WINDOW" type="INT" value="1" />
+ <where>OTP_POLICY_WINDOW is NULL</where>
+ </update>
+ <update tableName="REALM">
+ <column name="OTP_POLICY_PERIOD" type="INT" value="30" />
+ <where>OTP_POLICY_PERIOD is NULL</where>
+ </update>
+ <update tableName="REALM">
+ <column name="OTP_POLICY_DIGITS" type="INT" value="6" />
+ <where>OTP_POLICY_DIGITS is NULL</where>
+ </update>
+ <update tableName="CREDENTIAL">
+ <column name="COUNTER" type="INT" value="0" />
+ <where>COUNTER is NULL</where>
+ </update>
+ <update tableName="CREDENTIAL">
+ <column name="DIGITS" type="INT" value="6" />
+ <where>DIGITS is NULL</where>
+ </update>
+ <update tableName="CREDENTIAL">
+ <column name="PERIOD" type="INT" value="30" />
+ <where>PERIOD is NULL</where>
+ </update>
+ <!-- 1.6 -->
+ <update tableName="REALM">
+ <column name="OFFLINE_SESSION_IDLE_TIMEOUT" type="INT" value="2592000" />
+ <where>OFFLINE_SESSION_IDLE_TIMEOUT is NULL</where>
+ </update>
+ <!-- 1.7 -->
+ <update tableName="REALM">
+ <column name="ACCESS_TOKEN_LIFE_IMPLICIT" type="INT" value="900" />
+ <where>ACCESS_TOKEN_LIFE_IMPLICIT is NULL</where>
+ </update>
+
+ </changeSet>
+</databaseChangeLog>
\ No newline at end of file
diff --git a/model/jpa/src/main/resources/META-INF/jpa-changelog-master.xml b/model/jpa/src/main/resources/META-INF/jpa-changelog-master.xml
index 0f907e0..987d5e2 100755
--- a/model/jpa/src/main/resources/META-INF/jpa-changelog-master.xml
+++ b/model/jpa/src/main/resources/META-INF/jpa-changelog-master.xml
@@ -12,4 +12,5 @@
<include file="META-INF/jpa-changelog-1.6.1.xml"/>
<include file="META-INF/jpa-changelog-1.7.0.xml"/>
<include file="META-INF/jpa-changelog-1.8.0.xml"/>
+ <include file="META-INF/jpa-changelog-1.9.0.xml"/>
</databaseChangeLog>