DSH Plugins Marketplace

DSH Plugins

Plugins

/

dsh-db-migration

u

dsh-db-migration

Manifest valid

Database Migration Generation: Compare two SQL DDLs, detect table/column structural differences, and generate ALTER TABLE migration SQL

hasBundlePatch

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.json 的 dsh.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

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

Comments

Loading…

Similar plugins

dsh-markdown-table

by uckkk

Markdown 表格生成:JSON 数组/二维数组转 Markdown 表格

Tools & CapabilitiesManifest valid

★ 0

↓ 23/wk

MIT

JavaScript

Aug 19, 2026

dsh plugin --profile web add dsh-markdown-table

by xiajiajun516

DeepSeek Harness (DSH) backup & restore plugin — export, import, migrate and sync your complete DSH configuration, plugins, MCP servers, skills and workspace. One-click migration to another machine.

Development & InfrastructureManifest valid

★ 147

MIT

TypeScript

Sep 30, 2026

dsh plugin --profile web add dsh-config-manager

by Suixin04

DeepSeek Harness 可视化跨设备会话迁移插件|Visual cross-device session migration with drag-and-drop ZIP, JSONL, and folder imports.

Development & InfrastructureManifest valid

★ 0

MIT

JavaScript

Aug 24, 2026

dsh plugin --profile web add dsh-session-migrator

Database connections and SQL for DeepSeek Harness: register data sources, browse and comment schemas, run AST-checked SQL with a per-source read-only toggle, and render bar, line and pie charts, from

Tools & CapabilitiesManifest valid

★ 0

dsh plugin --profile web add @tomowang/dsh-data-agent

by ygcdsj

一个插件,把本地的 DSH 配置(皮肤、预设、注入包)打包成文件,到另一台 Windows 上直接还原。

Workflow & AutomationManifest valid

★ 3

↓ 63/wk

MIT

TypeScript

Aug 23, 2026

dsh plugin --profile web add dsh-migrate

by ailiasdesu

DSH session migration plugin: drag-and-drop sessions between workspaces in the Web UI settings panel (auto backup/rollback, official workspaceRegistry sync)

Terminal & ClientsManifest valid

★ 0

BSD-3-Clause

JavaScript

Aug 28, 2026

dsh plugin --profile web add @dsh-external/dsh-session-manager