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

auto-generate entities. this breaks things. manual patching required #197

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

BlinkyStitt
Copy link
Contributor

this currently fails to compile because we changed the foreign key index on rpc_accounting_v2 to just be a regular index. The SQL query still works. sea-orm just doesn't see it as a related entitity anymore and so .inner_join(rpc_key::Entity) fails.

I'm not sure the recommended way to fix this. For now we can just stay on the old entities. If we have to migrate before fixing this, the relationship can be put back after the entities are generated.

@BlinkyStitt
Copy link
Contributor Author

BlinkyStitt commented Jul 27, 2023

after reviewing this, i see that it didn't actually make any changes that we want. I'm going to save undoing these changes (ignoring the version numbers) as a patch. Then we can apply the patch after generating and not have to clean up a lot less by hand next time we add a migration.

@BlinkyStitt BlinkyStitt added the wip Work in Progress label Aug 3, 2023
Base automatically changed from devel to main November 22, 2023 04:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wip Work in Progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant