{"id":15797205,"url":"https://github.com/mylxsw/wizard-migration","last_synced_at":"2025-06-13T18:33:28.766Z","repository":{"id":69885277,"uuid":"245825215","full_name":"mylxsw/wizard-migration","owner":"mylxsw","description":"Wizard 数据迁移工具，用于将 ShowDoc 的文档迁移到 Wizard","archived":false,"fork":false,"pushed_at":"2020-03-09T09:34:00.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-12T00:25:20.160Z","etag":null,"topics":["migration","showdoc","wizard"],"latest_commit_sha":null,"homepage":"http://wizard.aicode.cc","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mylxsw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-08T14:03:12.000Z","updated_at":"2020-03-09T09:30:52.000Z","dependencies_parsed_at":"2023-02-26T13:15:26.945Z","dependency_job_id":null,"html_url":"https://github.com/mylxsw/wizard-migration","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mylxsw%2Fwizard-migration","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mylxsw%2Fwizard-migration/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mylxsw%2Fwizard-migration/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mylxsw%2Fwizard-migration/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mylxsw","download_url":"https://codeload.github.com/mylxsw/wizard-migration/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246531984,"owners_count":20792735,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["migration","showdoc","wizard"],"created_at":"2024-10-05T00:05:00.368Z","updated_at":"2025-03-31T19:43:33.546Z","avatar_url":"https://github.com/mylxsw.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wizard-migration\n\nWizard 数据迁移工具，用于将 ShowDoc 的文档迁移到 Wizard。迁移只保留项目、文档、文档历史、附件。\n\n## 使用说明\n\n在执行迁移之前，请先初始化好 Wizard 项目，并且创建管理员账号。\n\n### 1. 迁移数据库\n\n    ./wizard-migration \\\n        -showdoc_db \"/ShowDoc路径/Sqlite/showdoc.db.php\" \\\n        -wizard_db \"账号:密码@tcp(数据库IP:数据库端口)/wizard_migration\" \\\n        -replace_url \"http://showdoc.local.yunsom.space\"  \\\n        -import_user_id=1 \n        \n\u003e `import_user_id` 指定了导入到 wizard 之后的文档的创建人、修改人默认用户ID\n\n### 2. 迁移用户上传资源（附件，图片）\n\n    cp -r /Showdoc项目根目录/Public/Uploads /Wizard项目根目录/storage/app/public/showdoc","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmylxsw%2Fwizard-migration","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmylxsw%2Fwizard-migration","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmylxsw%2Fwizard-migration/lists"}