A script written to migrate data from the old db to our PayloadCMS instance.
projects.json
,submissions.json
andguilds.json
in/data
, pull from old database.- Create an empty array in
data/failed.json
, copyidmap.empty.json
toidmap.json
in/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.example
to.env
- Start PayloadCMS locally, and uncomment the rate limit bypass.
- Run this script until it's finished. It'll generate some new files in
/data
to help figure out what files were missing.