Skip to content

Latest commit

 

History

History
6 lines (6 loc) · 478 Bytes

MIGRATION.md

File metadata and controls

6 lines (6 loc) · 478 Bytes

How to migrate from the legacy CT database to the new one:

  1. Generate the old prisma definitions: dotenv -e .env.local npx prisma db generate --schema prisma/legacy_schema.prisma
  2. Generate the new prisma definitions: dotenv -e .env.local npx prisma db generate --schema prisma/schema.prisma
  3. Create the new database: create database website
  4. Populate the new database: dotenv -e .env.local npx prisma db push
  5. Run the migration script: yarn migrate-legacy-db