From 375cd035755ca4485893a9524b4ce670ac46732d Mon Sep 17 00:00:00 2001 From: lin <lin@pop-os.localdomain> Date: 星期一, 06 二月 2023 16:43:04 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/wvp-28181-2.0' into wvp-28181-2.0 --- src/main/resources/application.yml | 15 ++++++++++++++- 1 files changed, 14 insertions(+), 1 deletions(-) diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index caf4dfc..4efb527 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -1,3 +1,16 @@ spring: + application: + name: wvp profiles: - active: dev \ No newline at end of file + active: local + # flayway鐩稿叧閰嶇疆 + flyway: + enabled: true #鏄惁鍚敤flyway(榛樿true) + locations: classpath:db/migration #杩欎釜璺緞鎸囩殑鏄痜ly鐗堟湰鎺у埗鐨剆ql璇彞瀛樻斁鐨勮矾寰�,鍙互澶氫釜锛屽彲浠ョ粰姣忎釜鐜浣跨敤涓嶅悓浣嶇疆,姣斿classpath:db/migration,classpath:test/db/migration + baseline-on-migrate: true #寮�鍚嚜鍔ㄥ垱寤篺lyway鍏冩暟鎹〃鏍囪瘑 榛樿: false + # 涓� baseline-on-migrate: true 鎼厤浣跨敤,灏嗗綋鍓嶆暟鎹簱鍒濆鐗堟湰璁剧疆涓�0 + baseline-version: 0 + clean-disabled: true #绂佹flyway鎵ц娓呯悊 + # 鍋囧宸茬粡鎵ц浜嗙増鏈�1鍜岀増鏈�3锛屽鏋滃鍔犱簡涓�涓増鏈�2锛屼笅闈㈣繖涓�夐」灏嗕細鍏佽鎵ц鐗堟湰2鐨勮剼鏈� + out-of-order: true + table: flyway_schema_history_${spring.application.name} #鐢ㄤ簬璁板綍鎵�鏈夌殑鐗堟湰鍙樺寲璁板綍 \ No newline at end of file -- Gitblit v1.8.0