We need to: setup our v2 infrastructure the way we want; migrate all v1 data to the v2 infrastructure (first in dev, then in prod); and spin down v1 services. This repo contains scripts that help achieve those goals. Jump down to Task Details for futher reading.
Requires Node and yarn. Install with:
yarn install
The specific steps (which may be spread across a different number of individual scripts) will be:
Organization
and Signup
table data to v2-devv2-dev
and debug search until it's no longer throwing parsing errorspriorart-sftp-prod
) to v2-devprior-art-archive-sftp
) to v2-dev (priorart-sftp-prod
) using slug mappingsOnce we've got things working in dev, we can move on to prod.
priorart-sftp-prod
contents and relevant drag-and-drop uploads)prior-art-archive-sftp
→ priorart-sftp-prod
)When we ported v1-prod's Postgres data to v2-prod, we didn't preserve primary keys. Thus, the organization IDs (known as company IDs in v1-prod) all changed. (Happily, the slugs remained the same.) It's important to know these because various places, such as the s3://assets.priorartarchive.org/uploads
directory, are keyed by this ID, and we need to be able to know what company/organization this ID corresponds to. This mapping has been completed in #8.