-
Notifications
You must be signed in to change notification settings - Fork 57
Database migrations? #156
Comments
Thank you so much for highlighting the schema changes and your willingness to help with migrations. We've streamlined our database by consolidating transactions into a single table using JSON, leveraging PostgreSQL's native support. This change not only eases maintenance but also facilitates the migration processes(fewer tables to maintain). With the reduced complexity of our database layout and the integration of the SQLx Rust crate, which includes migration capabilities, we're now in a better position to implement database migrations. Your insight into the long-term benefits of option 2 is appreciated, and we're moving towards adopting this approach for future updates. |
what's the correct way to update to #112 ? do we drop the the db and it will be created automaticaly (in that case it will sync from scratch) or any alternative to keep the existing synced data? Thanks.
|
Yes the best way is to drop the database and re-index. (sorry for the late answer) |
I noticed that #112 changed the database schema in a way that breaks compatibility with existing deployments.
What is the intended way to deal with things like this?
Option 1 seems reasonable for now given the early stage of the namada network. However, long term you'll likely want to take approach 2. If/when there's a desire for that, I could potentially help with it.
The text was updated successfully, but these errors were encountered: