Repository navigation
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests.
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
shadowcpy
force-pushed
the
fix-migr-tablename
branch
from
November 5, 2026 16:13
be09a9e to
f5a0b0d
Compare
shadowcpy
force-pushed
the
fix-migr-tablename
branch
from
November 5, 2026 17:05
f5a0b0d to
83386c9
Compare
The migration generator cleared all attributes of a model when writing it into a migration file, including an explicit `table_name`. The migration model then derived its table name from its own struct name, so the next `cot migration make` compared it against a different table and generated a bogus remove/create pair for every model with a custom table name.
shadowcpy
force-pushed
the
fix-migr-tablename
branch
from
November 6, 2026 23:57
83386c9 to
2bed72b
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The migration generator clears all attributes of a model when writing it into a migration file, including an explicit
table_name. The migration model then derived its table name from its own struct name, so the nextcot migration makecompared it against a different table and generated a bogus remove/create pair for every model with a custom table name.Related issue or discussion
Necessary work for the Auth Refactor, see #634
Description
When generating the migration model, the table name attribute is preserved such that the generator recognizes the model in a future migration.
A test is added to ensure this behaviour does not break in the future.
Type of change
Checklist
just test-all)just clippy)cargo fmt)