Skip to content

dolt_schema_diff, dolt_patch need better support for CREATE, ALTER TABLE statements #1371

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

Open
zachmu opened this issue Apr 9, 2025 · 0 comments

Comments

@zachmu
Copy link
Member

zachmu commented Apr 9, 2025

MySQL CREATE TABLE statements can include schema elements e.g. indexes that Postgres statements cannot. Currently we simply omit these elements when generating the CREATE TABLE statements for Doltgres tables. But this means that the output of dolt_schema_diff and dolt_patch are incomplete for doltgres.

The simplest solution is probably to converge on the postgres restrictions, so that we emit CREATE TABLE and ALTER TABLE statements that make sense for both dialects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant