This commit is contained in:
@@ -19,9 +19,9 @@
|
||||
用法:
|
||||
python scripts/migrate_db.py \
|
||||
--src-driver=mysql --src-host=127.0.0.1 --src-port=3306 \
|
||||
--src-db=djangoadmin.fastapi.elevue --src-user=root --src-pass=root \
|
||||
--src-db=djangoadmin.tornado.elevue --src-user=root --src-pass=root \
|
||||
--dst-driver=postgresql --dst-host=127.0.0.1 --dst-port=5432 \
|
||||
--dst-db=djangoadmin.fastapi.elevue --dst-user=root --dst-pass=root \
|
||||
--dst-db=djangoadmin.tornado.elevue --dst-user=root --dst-pass=root \
|
||||
--drop-target-first
|
||||
|
||||
先干跑核对计划:加 --dry-run(只连源、逐表数行数、打印计划,不碰目标库)。
|
||||
|
||||
@@ -368,6 +368,7 @@ def get_tree_list(menu_list):
|
||||
'id': item.id,
|
||||
'name': item.name,
|
||||
'icon': item.icon,
|
||||
'icon2': item.icon2,
|
||||
'path': item.path,
|
||||
'parentId': item.parent_id,
|
||||
'type': item.type,
|
||||
|
||||
Reference in New Issue
Block a user