DeepSeek Harness plugin

dsh-db-migration

数据库迁移生成:对比两个 SQL DDL 文件(CREATE TABLE),检测新增/删除/变更的表与列,生成 ALTER TABLE 迁移 SQL

Jump to install

Source facts

Repository
uckkk/dsh-db-migration
Latest update
Aug 19, 2026
Category
Tools & Capabilities
GitHub stars
0
Format
plugin
Catalog evidence
Upstream dsh.bundle evidence
Evidence path
package.json#dsh.bundle
Checked against
0.1.0-rc.8
Upstream check date
2026-08-20

This evidence comes from the upstream catalog. This site has not installed, run, or security-reviewed the plugin.

Install

Start with a prompt that asks an agent to review the GitHub repository and source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to review the GitHub repository and source first.

Do not install or run any commands yet. Read this plugin's GitHub repository, README, and relevant source code. Then answer the questions below clearly and directly so I can decide whether it fits my needs:

1. What is this plugin, and what problem does it solve?
2. Who is it for, and what are its typical use cases?
3. How is it used after installation? Include one minimal example.
4. What known limitations or privacy, security, compatibility, or maintenance risks does it have?
5. Give a clear recommendation: recommend, conditionally recommend, or do not recommend, with reasons.

Distinguish statements documented by the repository, inferences from source code, and unknowns. If evidence is insufficient, say so explicitly. Do not guess or simply repeat the README.

GitHub: https://github.com/uckkk/dsh-db-migration
Plugin: dsh-db-migration
Author: uckkk

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer3 files
README.mdSource · read only

dsh-db-migration · 数据库迁移生成

对比两个 SQL DDL 文件(CREATE TABLE 集合),检测新增/删除/变更的表与列,并生成 ALTER TABLE / DROP TABLE 迁移 SQL。纯 Node 实现,无网络、无外部服务。

提供的工具

工具作用
diff_schema对比旧版/新版 DDL,返回结构差异统计 + 迁移 SQL

安装

dsh plugin add dsh-db-migration

安装后在 profile 的 package.jsondsh.profile.bundles 中加入 "dsh-db-migration"

用法示例

对比旧版和新版数据库结构,生成迁移 SQL
→ 调用 diff_schema(oldFile="schema_v1.sql", newFile="schema_v2.sql", outFile="migrations/20260816_up.sql")

识别范围

  • 新增/删除表(生成 CREATE TABLE / DROP TABLE
  • 新增/删除列(生成 ALTER TABLE ADD/DROP COLUMN
  • 列类型变更(生成 ALTER TABLE MODIFY COLUMN
  • 支持常见类型(含 DECIMAL(10,2)VARCHAR(255)ENUM('a','b') 等带括号/逗号类型)

说明

  • 覆盖常见 CREATE TABLE(MySQL/PostgreSQL/SQLite 基础列定义);外键、索引、复合主键、复杂默认值/触发器不在处理范围
  • 生成的迁移 SQL 是起点,涉及线上数据时请务必人工复核后再执行。

安装

dsh plugin add github:uckkk/dsh-db-migration

> 安装即在本机运行第三方代码,请自行审阅源码。

安装

dsh plugin add github:uckkk/dsh-db-migration

使用

安装后在会话中调用该插件注册的工具即可。

许可

MIT

> 安装即在本机运行第三方代码,请自行审阅源码。