DAL/Node: change the location of the skip list cells sqlite store version
What
Change the location of the DAL skip list cells sqlite storage.
It was previously created under the $data_dir/ path, and can now be found under $data_dir/skip_list_store/.
Why
In case we need to create another sqlite store, it is preferable to separate them in different folders.
How
- Move sqlite storage init function in its own module. Assuming each sqlite store will be in a separate module inside the
dal_store_sqlite3.mlfile. - Introduce the
init_sqlite_skip_list_cells_storefunction instore.mlto handle the correct path to be used when initializing the store. - Update the migration function to no remove the all store as it was previously implemented.
- Copy the sql store if it was already used (i.e the user already used the
--sqlite3-backendCLI flag.
Manually testing the MR
Checklist
-
Document the interface of any function added or modified (see the coding guidelines) -
Document any change to the user interface, including configuration parameters (see node configuration) -
Provide automatic testing (see the testing guide). -
For new features and bug fixes, add an item in the appropriate changelog ( docs/protocols/alpha.rstfor the protocol and the environment,CHANGES.rstat the root of the repository for everything else). -
Select suitable reviewers using the Reviewersfield below. -
Select as Assigneethe next person who should take action on that MR
Edited by Paul Laforgue