Has anyone wondered how to create a Supabase migration?
To create a migration, you only need two commands:
  • supabase migration new <migration_name>
  • supabase migration up --db-url <database_connection_string>
<database_connection_string - for local development this is usual 'postgresql://postgres:[email protected]:54322/postgres'
Then you put an SQL script inside it and that's it, the migration is ready :)
Prerequisites:
You need to have the Supabase CLI installed and run it from within a local Supabase project.
1
0 comments
Karol Szykula
2
Has anyone wondered how to create a Supabase migration?
powered by
EngineeringTech
skool.com/szykulatech-3240
We focus on JS/TS, React, Next.js, Supabase, shadcn/ui, Tailwind CSS, and deployments on Netlify. We focus on fast shipping.
Build your own community
Bring people together around your passion and get paid.
Powered by