-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Filter table not applied on diesel migration --diff-schema
#3717
Comments
The issue here is that the
See the diesel/diesel_cli/src/print_schema.rs Lines 180 to 182 in f4d5f93
A fix of that issue should likely move the definition of the diesel/diesel_cli/src/print_schema.rs Lines 15 to 40 in f4d5f93
In addition to the actual fix we want to add at least a test case (for example the provided one) like that one here: diesel/diesel_cli/tests/migration_generate.rs Lines 258 to 261 in f4d5f93
(Also checkout the corresponding folder in |
hey @weiznich I've started working on this, it's going pretty well thanks your guide above! I have a couple of questions though:
|
Discussed in #3712
Originally posted by forest1102 July 25, 2023
I am trying out a new option
diff-schema
.However, when I use the
filter
field in diesel.toml just omits tables used in other crates.diesel migration generate edit_column_name --diff-schema
results in writing code to delete tables not listed in the filter fields. I expect migration do nothing about unlisted tables.Inputs
initial database info
diesel.toml
schema_a/src/schema.rs
command
Actual Result
up.sql
Expected
up.sql
Version
The text was updated successfully, but these errors were encountered: