diff --git a/pom.xml b/pom.xml
index f80f218..41507a7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -71,6 +71,18 @@
ruoyi-common-swagger
+
+
+ org.flywaydb
+ flyway-core
+
+
+
+
+ org.flywaydb
+ flyway-mysql
+
+
diff --git a/src/main/resources/bootstrap.yml b/src/main/resources/bootstrap.yml
index 5b92504..eb78f10 100644
--- a/src/main/resources/bootstrap.yml
+++ b/src/main/resources/bootstrap.yml
@@ -3,13 +3,17 @@ server:
port: 9201
# Spring
-spring:
+spring:
application:
# 应用名称
name: ruoyi-system
profiles:
# 环境配置
active: prod
+ flyway:
+ table: flyway_system_schema_history # 自定义历史表名
+ baseline-on-migrate: true
+ baseline-version: 0
cloud:
nacos:
discovery:
diff --git a/src/main/resources/db/migration/V1__Initial_setup.sql b/src/main/resources/db/migration/V1__Initial_setup.sql
new file mode 100644
index 0000000..a496326
--- /dev/null
+++ b/src/main/resources/db/migration/V1__Initial_setup.sql
@@ -0,0 +1,10 @@
+-- Initial setup for ruoyi-system module
+-- This is a placeholder migration file
+-- Add your initial database schema here
+
+-- Example:
+-- CREATE TABLE IF NOT EXISTS example_table (
+-- id BIGINT PRIMARY KEY AUTO_INCREMENT,
+-- name VARCHAR(100) NOT NULL,
+-- created_time DATETIME DEFAULT CURRENT_TIMESTAMP
+-- );
\ No newline at end of file