A script written to migrate data from the old db to our PayloadCMS instance.
projects.json,submissions.jsonandguilds.jsonin/data, pull from old database.- Create an empty array in
data/failed.json, copyidmap.empty.jsontoidmap.jsonin/data. - If you have old images/files, put then in
/images/orig/<PROJECT ID>, code will try to look in there first before downloading from url. Doesn't download if the url is the Scaleway, you have to put it in the local data. - Copy
.env.exampleto.env - Start PayloadCMS locally, and uncomment the rate limit bypass.
- Run this script until it's finished. It'll generate some new files in
/datato help figure out what files were missing.