Skip to content

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