forked from wangziqi/ruoyi-vue-pro
feat(education): complete Flyway migration and atomic submit
This commit is contained in:
@@ -22,6 +22,21 @@ spring:
|
||||
- com.alibaba.cloud.ai.autoconfigure.dashscope.DashScopeEmbeddingAutoConfiguration
|
||||
- com.alibaba.cloud.ai.autoconfigure.dashscope.DashScopeMultimodalEmbeddingAutoConfiguration
|
||||
- com.alibaba.cloud.ai.autoconfigure.dashscope.DashScopeAsyncToolCallingManagerAutoConfiguration
|
||||
# Flyway 数据库迁移:首次接管既有 PostgreSQL 库时建立 V4009 基线,后续迁移从 V4010 开始
|
||||
flyway:
|
||||
enabled: true
|
||||
url: ${FLYWAY_URL:${spring.datasource.dynamic.datasource.master.url}}
|
||||
user: ${FLYWAY_USER:${spring.datasource.dynamic.datasource.master.username}}
|
||||
password: ${FLYWAY_PASSWORD:${spring.datasource.dynamic.datasource.master.password}}
|
||||
locations: classpath:db/migration
|
||||
table: flyway_schema_history
|
||||
baseline-on-migrate: true
|
||||
baseline-version: 4009
|
||||
baseline-description: existing-postgresql-schema
|
||||
validate-on-migrate: true
|
||||
clean-disabled: true
|
||||
out-of-order: false
|
||||
|
||||
# 数据源配置项
|
||||
datasource:
|
||||
druid: # Druid 【监控】相关的全局配置
|
||||
@@ -51,7 +66,7 @@ spring:
|
||||
time-between-eviction-runs-millis: 60000 # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位:毫秒(1 分钟)
|
||||
min-evictable-idle-time-millis: 600000 # 配置一个连接在池中最小生存的时间,单位:毫秒(10 分钟)
|
||||
max-evictable-idle-time-millis: 1800000 # 配置一个连接在池中最大生存的时间,单位:毫秒(30 分钟)
|
||||
validation-query: SELECT 1 FROM DUAL # 配置检测连接是否有效
|
||||
validation-query: SELECT 1 # PostgreSQL 连接有效性检测
|
||||
test-while-idle: true
|
||||
test-on-borrow: false
|
||||
test-on-return: false
|
||||
@@ -60,12 +75,12 @@ spring:
|
||||
primary: master
|
||||
datasource:
|
||||
master:
|
||||
url: jdbc:mysql://127.0.0.1:3306/ruoyi-vue-pro?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true # MySQL Connector/J 8.X 连接的示例
|
||||
url: jdbc:postgresql://127.0.0.1:5432/ruoyi-vue-pro
|
||||
username: root
|
||||
password: 123456
|
||||
slave: # 模拟从库,可根据自己需要修改 # 模拟从库,可根据自己需要修改
|
||||
slave: # 模拟从库,可根据自己需要修改
|
||||
lazy: true # 开启懒加载,保证启动速度
|
||||
url: jdbc:mysql://127.0.0.1:3306/ruoyi-vue-pro?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true # MySQL Connector/J 8.X 连接的示例
|
||||
url: jdbc:postgresql://127.0.0.1:5432/ruoyi-vue-pro
|
||||
username: root
|
||||
password: 123456
|
||||
|
||||
|
||||
Reference in New Issue
Block a user