Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 735 Bytes

PRISMA_TURSO_GUIDE.md

File metadata and controls

29 lines (19 loc) · 735 Bytes

Turso & Prisma

To create all the tables and run the Prisma client, please follow these steps:

  1. Migrate the changes from the Prisma Schema (make sure you have the same Prisma schema as the original repository):
npx prisma migrate dev --name init
  1. Once migrated, log in to Turso using the CLI:
turso auth login
  1. Once logged in, check the database connection:
turso db slug-link
  1. Then run the migration into the SQLite Turso DB:
turso db shell slug-link < ./prisma/migrations/20230922132717_init/migration.sql

Replace the migration number /<replace this with your migration number>_init/migration.sql with the corresponding migration number in your Prisma folder.