docs: migrate from VitePress to Fumadocs (Next.js)

- Replace VitePress with Fumadocs + Next.js for documentation site
- Configure i18n (English + 简体中文) with language switcher
- Migrate all 17 guide documents to MDX format with updated content
- Add ocean theme, GitHub/Discord/QQ social links
- Update GitHub Actions workflow for Next.js static export
- Update .gitignore for .next, out, .source directories
This commit is contained in:
t8y2
2026-05-06 10:17:17 +08:00
parent 97eeab2801
commit 6a5a380fdd
65 changed files with 4647 additions and 3452 deletions
+36
View File
@@ -0,0 +1,36 @@
---
title: Schema Diff
description: Compare database schemas and generate SQL to synchronize them.
---
# Schema Diff
Schema Diff compares the structure of two databases and generates the SQL needed to synchronize them. This is useful for identifying differences between development and production environments, or between any two database instances.
## Comparing Schemas
To start a comparison:
1. Open the Schema Diff panel.
2. Select the **source** connection and database.
3. Select the **target** connection and database.
4. Run the comparison.
DBX analyzes both schemas and presents a side-by-side diff of all structural differences, including:
- Tables that exist in one database but not the other
- Columns that differ in type, default value, or nullability
- Index and constraint differences
## Generating Sync SQL
After the comparison is complete, DBX generates the SQL statements required to bring the target database in line with the source. This may include `CREATE TABLE`, `ALTER TABLE`, `DROP TABLE`, and related statements depending on the differences found.
You can review the generated SQL before taking any action.
## Executing Sync Directly
Once you have reviewed the generated SQL, you can execute it directly within DBX against the target database. There is no need to copy the SQL to an external tool -- the sync can be completed in a single workflow.
> **Warning:**
> Schema sync can make destructive changes (such as dropping tables or columns). Always review the generated SQL carefully before executing, and consider backing up the target database first.