Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: schema diff sql tools #17116

Merged
merged 1 commit into from
Mar 28, 2025
Merged

feat: schema diff sql tools #17116

merged 1 commit into from
Mar 28, 2025

Conversation

jrasm91
Copy link
Contributor

@jrasm91 jrasm91 commented Mar 25, 2025

Migrate away from TypeOrm migration generation.

@jrasm91 jrasm91 force-pushed the feat/schema-diff branch 4 times, most recently from 3d6dbea to 201d539 Compare March 26, 2025 18:45
@jrasm91 jrasm91 marked this pull request as ready for review March 26, 2025 18:45
Comment on lines +139 to +146
const sourceMap = Object.fromEntries(sources.map((column) => [column.name, column]));
const targetMap = Object.fromEntries(targets.map((column) => [column.name, column]));
const keys = new Set([...Object.keys(sourceMap), ...Object.keys(targetMap)]);

for (const key of keys) {
items.push(...diffColumn(sourceMap[key], targetMap[key]));
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This happens in a couple of places here. Thoughts on extracting it into a helper function?

@jrasm91 jrasm91 merged commit 4b4bcd2 into main Mar 28, 2025
45 checks passed
@jrasm91 jrasm91 deleted the feat/schema-diff branch March 28, 2025 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants