SupabaseS
Supabase6mo ago
Jacob

Setup migrations with better auth

Hi everyone! I have a Next.js project that uses Supabase + Better-Auth
Currenly, I have the default Better-Auth tables in the Supabase instance, and I want to start using the Supabase tables for my backend, not only for Better-Auth.
So, I want to create the first migration to modify
user
table of better-auth. the problem is that I don't have local sql migrations yet, so I'm ensure if I can just create new migration without having the migration that used before to create the better-auth tables.
How can I sync the schema locally with the Supabase instance? I'm worried that otherwise it can affect the existing tables of better-auth.
For instance, I would like to add phone column to
user
table
Thanks!
Was this page helpful?