mirror of
https://github.com/XRPLF/clio.git
synced 2026-02-03 13:35:26 +00:00
d7d0ac8d2910ad05eff0225f5ef66ecced2de24d
CLIO MIGRATOR (ONE OFF!)
This tool is a (really) hacky way of migrating some data from clio due to the specific pull request 313 in that repo.
Specifically, it is meant to migrate NFT data such that:
- The new
nf_token_uristable is populated with all URIs for all NFTs known - The new
issuer_nf_tokens_v2table is populated with all NFTs known - The old
issuer_nf_tokenstable is dropped. This table was never used prior to the above-referenced PR, so it is very safe to drop.
This tool should be used as follows, with regard to the above update:
- Stop serving requests from your clio
- Stop your clio and upgrade it to the version after the after PR
- Start your clio
- Now, your clio is writing new data correctly. This tool will update your old data, while your new clio is running.
- Run this tool, using the exact same config as what you are using for your production clio.
- Once this tool terminates successfully, you can resume serving requests from your clio.
Compiling
Git-clone this project to your server. Then from the top-level directory:
mkdir build
cd build
cmake ..
cmake --build . -j 4
Once this completes, the migrator will be compiled as clio_migrator. Then
you should copy your existing clio config somewhere and:
./clio_migrator <config path>
This migration will take a few hours to complete.
Description
Languages
C++
97.2%
Go
1.4%
CMake
1%
Dockerfile
0.2%
Shell
0.1%
Other
0.1%