Installation
We made it super easy for you to push the pre-defined database schema to Supabase. Just follow these steps starting with connecting Supabase with our local development project:
- Install Supabase CLI:
- Follow the instructions in the Supabase CLI Getting Started guide.
- Login:
- Run
npx supabase login
and follow the prompts.
- Run
- Link Your Project:
- Run
npx supabase link
and select your project. - Provide your database password when prompted. It might give you a WARNING: You can safely ignore the warning that the 'local config differs from linked project.' Supabase will update some files based on your linked project.
- Run
- Push Migrations:
- Execute
npx supabase db push --linked --include-seed
. - Confirm by answering Y to push the migrations and seed.
- Execute
- Verify:
- Check your tables via the Table Editor.
- Verify your storage buckets via the Storage Buckets.
- If any tables or buckets are missing, copy the SQL from the
/supabase
folder (files likeYYYYMMDD_core_structure.sql
andseed.sql
) into the SQL Editor.