You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we are using obsolete version of SeaORM, namely 0.11.1 and we generate entities using version 0.12.3. It produces different source code for the entities which a developer has to remove when the developer changes the migration scripts.
Solution
Upgrade SeaORM to the latest version everywhere:
To be used for migrations
To be used for generating entities
To be used by Scraper to interact with Postgres DB
Tasks
Upgrade SeaORM in main/Cargo.toml (sea-orm and sea-orm-migration).
Upgrade SeaORM in generate_entities.rs and regenerate entities. Make sure that new datatypes can handle existing data without issues.
Make the code compilable again.
Remove SeaORM from sealevel/Cargo.toml.
Testing
Run Scraper from mainstream branch with current SeaORM version and populate database with data from some blockchain
Switch to the feature branch with the latest SeaORM version.
Run Scraper from feature brach and confirm that all the data is populated in the same format as before
The text was updated successfully, but these errors were encountered:
Problem
Currently we are using obsolete version of SeaORM, namely
0.11.1
and we generate entities using version0.12.3
. It produces different source code for the entities which a developer has to remove when the developer changes the migration scripts.Solution
Upgrade SeaORM to the latest version everywhere:
Tasks
main/Cargo.toml
(sea-orm
andsea-orm-migration
).generate_entities.rs
and regenerate entities. Make sure that new datatypes can handle existing data without issues.sealevel/Cargo.toml
.Testing
The text was updated successfully, but these errors were encountered: