title: Keycloak in Spring Boot cannot apply Liquibase patches
body: <p>I'm trying to start up a Spring Boot server containing an embedded Keycloak authorization server, <a href="https://www.baeldung.com/keycloak-embedded-in-spring-boot-app" rel="nofollow noreferrer">following this tutorial</a>. Tutorial's code is <a href="https://github.com/Baeldung/spring-security-oauth/tree/0d1839e4b92b84e746ecb7b54339100df895295b/oauth-resource-server/authorization-server" rel="nofollow noreferrer">here</a>. My own adaptation is a MySQL DB, instead of H2, fired up via <code>docker-compose</code></p>
  <p>On server start-up, I get this error while DB patches are being applied:
  <code>Caused by: java.sql.SQLSyntaxErrorException: Table 'auth.client_session' doesn't exist</code>. SequelPro threw same error, but the table is visually there. I solved this by <a href="https://stackoverflow.com/a/21728211/1774643">looking around this thread</a>. (a restart was sufficient for me)</p>
  <p>Next error was from the next patch, quoting: <code>keycloak java.sql.SQLSyntaxErrorException: Table 'client_attributes' already exists</code>, and with this one I'm stuck in DB migration limbo, because if I deleted it, it's going to circle back to a &quot;does not exist&quot; error.</p>
  <p>Versions:</p>
  <ul>
  <li><em>Spring Boot 2.2.4.RELEASE</em></li>
  <li><em>MySQL 5.7.32</em></li>
  <li><em>org.keycloak:keycloak-dependencies-server-all:10.0.1</em></li>
  </ul>