Confirmed users
595
edits
| Line 181: | Line 181: | ||
When we change schema we have to ensure tables are compatible with previous version, this is blocking us from doing big/important changes to how we store our dataset. | When we change schema we have to ensure tables are compatible with previous version, this is blocking us from doing big/important changes to how we store our dataset. | ||
We should create a new downgrade path able to manage any kind of schema change and backport it to any supported version (3.6, 3.5, 3.0, ...) | We should create a new downgrade path able to manage any kind of schema change and backport it to any supported version (3.6, 3.5, 3.0, ...) | ||
The idea is to backup history when a downgrade is about to start, create a new database, then restore bookmarks and history. This would just require us to upgrade historyvisits table in a compatible way, leaving anything other freeform (what about page annotations then?). Why not backing up history periodically with bookmarks? Just for privacy reasons. | The idea is to backup history when a downgrade is about to start, create a new database, then restore bookmarks and history. This would just require us to upgrade historyvisits table in a compatible way, leaving anything other freeform (what about page annotations then?).<br/> | ||
This would just require to split out backup&restore functionality to a separate backupRestore component (actually they are in PlacesUtils) so we can call them from history service. | Why not backing up history periodically with bookmarks? Just for privacy reasons.<br/> | ||
So on downgrade we would just throw away the db and force a restore from json format that should be guaranteed to stay unchanged. | This would just require to split out backup&restore functionality to a separate backupRestore component (actually they are in PlacesUtils) so we can call them from history service.<br/> | ||
What about inputhistory? Are there other history data we actually don't backup? | So on downgrade we would just throw away the db and force a restore from json format that should be guaranteed to stay unchanged.<br> | ||
This would be already needed for at least livemarks and tags changes. | What about inputhistory? Are there other history data we actually don't backup?<br/> | ||
Could we just accept that if a user is downgrading he will lose history and relnote the thing | This would be already needed for at least livemarks and tags changes.<br/> | ||
Could we just accept that if a user is downgrading he will lose history and relnote the thing? probably not. | |||
*'''PROS:''' no downgrade restrictions for schema | *'''PROS:''' no downgrade restrictions for schema | ||