Skip to content

Commit

Permalink
workaround during dev mode for #212
Browse files Browse the repository at this point in the history
  • Loading branch information
overheadhunter committed Jul 13, 2023
1 parent 72150ea commit 4accdb5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
/**
* @deprecated This used to generated the hub id. It got replaced by <code>V3__Initialize_Settings.sql</code>, though. Despite being dead code,
* this class must remain present in order for Flyway to work correctly on existing installations. May be removed when we start with a new <a href="https://flywaydb.org/documentation/concepts/baselinemigrations">baseline migration</a>
* <p>
* Note: Quarkus seems to fail to detect this file during hot reloading (see issue 212).
*
* @see <a href="https://github.com/cryptomator/hub/issues/183">Issue 183</a>
* @see <a href="https://github.com/cryptomator/hub/pull/184">PR 184</a>
* @see <a href="https://github.com/cryptomator/hub/issues/212">Issue 212</a>
*/
@Deprecated
public class V2__Initialize_Settings extends BaseJavaMigration {
Expand Down
1 change: 1 addition & 0 deletions backend/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ quarkus.hibernate-orm.dialect=org.hibernate.dialect.PostgreSQL10Dialect
quarkus.hibernate-orm.database.globally-quoted-identifiers=true
quarkus.flyway.migrate-at-start=true
quarkus.flyway.locations=classpath:org/cryptomator/hub/flyway
%dev.quarkus.flyway.ignore-missing-migrations=true

# log Hibernate SQL statements including values, for dev-purpose only
%dev.quarkus.log.min-level=TRACE
Expand Down

0 comments on commit 4accdb5

Please sign in to comment.