Compare two schemas on Linux
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 38/100
Direzione di ricerca
Read linux/ROADMAP.md and the Structure changes section of linux/docs/adding-drivers.md; compare the existing macOS implementation in features/compare-sync.mdx for context. The issue proposes first deciding whether schema diff belongs in the backlog, then implementing comparison and script generation for Linux. Done means PostgreSQL schemas differing by a column and index produce both differences, and running the generated script on the target makes a subsequent comparison empty.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem
The Linux app cannot compare two schemas. linux/ROADMAP.md, Backlog, Ideas lists "schema diff and data sync between connections" as not committed. The macOS app has both (features/compare-sync.mdx).
Checking that staging matches production today means opening Show CREATE TABLE for each table on both connections and reading them side by side.
Proposed solution
- Decide whether schema diff moves from Ideas into the backlog, and record it in
linux/ROADMAP.md. Data sync can stay an idea. - If yes, a first version:
- Compare Schemas between two connections of the same engine, or two schemas on one connection.
- A list of tables, columns, indexes and foreign keys that were added, removed or changed, built from the table definitions the drivers already fetch (
linux/docs/adding-drivers.md, section 7, Structure changes). - Generate Script writes the statements that make the target match, planned by the engine's
DdlDialect, so a change the engine cannot make is refused the same way the structure tab refuses it. - The script opens in an editor tab, previewed and never run on its own, with data loss marked as the structure review marks it.
- Comparing across engines is out of the first version.
Done means: two PostgreSQL schemas that differ by a column and an index show both differences, and the generated script, run on the target, makes the next comparison come back empty.
Alternatives considered
Compare Show CREATE TABLE output by hand, or with a text diff tool on two dumps.
Platform
Linux
Related database type
N/A / General
- Lingua principale
- Swift
- Stelle
- 6.2k
- Fork
- 412
- Merge medio
- 3h 56m
- PR unite (30g)
- 669
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di TableProApp/TablePro
-
Linux: Remember Password fails silently when there is no default keyringForse già presa @datlechin l’ha presa oggi. Apertabug platform-linux
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
TableProApp/TablePro#4098 ·
I maintainer di solito rispondono entro 1 giorno
-
bug platform-linux
Difficoltà 2/5 1-3 ore Idoneità per principianti 35/100
TableProApp/TablePro#4101 ·
I maintainer di solito rispondono entro 1 giorno
-
bug platform-linux
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
TableProApp/TablePro#4099 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement platform-macos
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
TableProApp/TablePro#4071 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement platform-macos
Difficoltà 3/5 1-2 giorni Idoneità per principianti 66/100
TableProApp/TablePro#4070 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di TableProApp/TablePro
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
OneBusAway/vehicle-positions#260 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
eliasstravik/herdr-projects#789 · 1 commento ·
-
follow-up needs-triage S3: minor
Difficoltà 1/5 1-3 ore Idoneità per principianti 85/100
manaflow-ai/cmux#38032 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
arkavo-org/ArkavoKit#70 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
vorssaint/vorssaint-utils#3933 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni