Don't delete old db after migration#11662
Conversation
Fixes unwanted shuffling&deletion of the old database after a migration that merely deletes data in one of the existing database columns.
|
The problem with |
|
Just tested this PR migrating from 2.7.2 chaindata and it works. 2020-04-29 09:53:07 UTC Migrating database from version 14 to 15 |
|
I think the migration code in general is problematic. We have deleted the migrations themselves and are left with this weird infrastructure of traits and types that has no use in today’s code. I can rip it out completely ofc and leave nothing for the next guy that has to write a migration. Specifically though, if there were a migration in the code that does read+process+write data in one or more columns, I think |
The fact that after the blooms migration the db sync started from scratch means there is a bug somewhere in the path logic. We didn't use
leaving non-working |
I think you're missing a piece here (my fault): my migration code writes to the source database, but the intention is that This is why I think I misused an That said I'm very skeptical to keeping migration setup code around that does not have any actual use. But is this the right PR to tackle that? |
Ah, ok, thanks for the clarification. I stand corrected then :) |
Co-Authored-By: Andronik Ordian <write@reusable.software>
Fixes unwanted shuffling&deletion of the old database after a
migration that merely deletes data in one of the existing database
columns.