Pushing Your Database to Supabase with Prisma
This guide explains how to deploy your local database schema to your Supabase project using Prisma. It assumes that you have already configured Prisma in your project and that your .env file is set up
Push Schema to Supabase
Push the Schema:
Run the following command in your terminal to migrate your local database schema to Supabase:
This command synchronizes your local schema defined in
schema.prisma
with your Supabase database, creating or updating tables as necessary.
Verify Deployment
Check the Supabase Dashboard:
Log into your Supabase dashboard and navigate to the 'Table Editor' to confirm that your tables have been correctly created or updated to reflect your Prisma schema.
This step is crucial to ensure that the push was successful and that the schema in your Supabase project matches your local definition.
Last updated