# Flyway 数据库迁移配置文件 # 配置用于 PostgreSQL 数据库的版本管理 # 数据库连接配置 flyway.url=jdbc:postgresql://localhost:5432/water_mgt flyway.username=postgres flyway.password=postgres # 迁移文件位置 flyway.locations=classpath:db/postgresql # Flyway 行为配置 flyway.enabled=true flyway.baseline-on-migrate=true flyway.baseline-version=1.0 flyway.validate-on-migrate=true flyway.clean-disabled=true flyway.out-of-order=false # 迁移表配置 flyway.table= flyway_schema_history # 配置编码 flyway.encoding=UTF-8 # 模式配置 flyway.schemas=public # 表空间配置(可选) flyway.defaultTablespace= # 权限配置 flyway.lockRetryCount=3 flyway.lockRetryInterval=50 # 开发环境配置 flyway.placeholderReplacement=true flyway.placeholderPrefix=${db. flyway.placeholderSuffix=} flyway.sqlMigrationSeparator=__ flyway.sqlMigrationPrefix=V flyway.sqlMigrationSuffix=.sql flyway.repeatableSqlMigrationPrefix=R flyway.undoSqlMigrationPrefix=U flyway.undoSqlMigrationSuffix=.sql