You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: Manage schema with Flyway for MySQL and H2.
Current state: No Flyway dependency; ddl-auto=update used. Entities: User, Space, Map, Element, UserSession, etc.
Tasks:
Add Flyway dependency and disable ddl-auto in prod. Create V1__baseline.sql covering current entities and indexes (including unique constraints and refresh_token_hash).
Configure profiles to auto-migrate; use H2-compatible migrations for dev.
Document migration flow.
Acceptance criteria:
App boots with Flyway applying migrations on both H2 (dev) and MySQL (build/prod).
References: pom.xml, entities under features/*, application*.properties.
ddl-auto=updateused. Entities:User,Space,Map,Element,UserSession, etc.ddl-autoin prod. CreateV1__baseline.sqlcovering current entities and indexes (including unique constraints andrefresh_token_hash).pom.xml, entities underfeatures/*,application*.properties.