This commit is contained in:
小蚂蚁云
2026-10-26 08:46:20 +08:00
parent 276740924a
commit 69f5c1767d
26 changed files with 259 additions and 121 deletions
+2 -2
View File
@@ -4,9 +4,9 @@
//
// go run ./cmd/migrator \
// -src-type=mysql -src-host=127.0.0.1 -src-hostport=3306 \
// -src-database=easygoadmin.goframe.elevue -src-username=root -src-password=root \
// -src-database=easygoadmin.goframe.antdvue -src-username=root -src-password=root \
// -dst-type=pgsql -dst-host=127.0.0.1 -dst-hostport=5432 \
// -dst-database=easygoadmin.goframe.elevue -dst-username=postgres -dst-password=123456 \
// -dst-database=easygoadmin.goframe.antdvue -dst-username=postgres -dst-password=123456 \
// -drop-target-first
//
// 可选:-tables "goframe_user,goframe_level"(只迁指定表)、-batch-size=1000(数据批大小)