0
0
Supabasecloud~10 mins

Running migrations locally and remotely in Supabase - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to run migrations locally using Supabase CLI.

Supabase
supabase db [1]
Drag options to blanks, or click blank then click option'
Apush
Bmigrate
Cdeploy
Dstart
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'migrate' instead of 'push' for local migration.
Confusing 'deploy' with local migration commands.
2fill in blank
medium

Complete the code to deploy migrations remotely to Supabase cloud.

Supabase
supabase db [1]
Drag options to blanks, or click blank then click option'
Amigrate
Bpush
Cdeploy
Dstart
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'push' which only applies migrations locally.
Using 'migrate' which is not a valid Supabase CLI command.
3fill in blank
hard

Fix the error in the command to generate a new migration file.

Supabase
supabase db [1] new_migration
Drag options to blanks, or click blank then click option'
Apush
Bmigration
Cgen
Dmigrate
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'push' which applies migrations instead of creating them.
Using 'gen' which is not a valid Supabase CLI command.
4fill in blank
hard

Fill both blanks to run migrations locally and then deploy remotely.

Supabase
supabase db [1] && supabase db [2]
Drag options to blanks, or click blank then click option'
Apush
Bdeploy
Cmigrate
Dstart
Attempts:
3 left
💡 Hint
Common Mistakes
Reversing the order of commands.
Using 'migrate' which is not a valid command.
5fill in blank
hard

Fill all three blanks to create a new migration, apply it locally, and deploy remotely.

Supabase
supabase db [1] new_migration && supabase db [2] && supabase db [3]
Drag options to blanks, or click blank then click option'
Amigration
Bpush
Cdeploy
Dstart
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'start' which is unrelated to migrations.
Skipping the creation step before pushing and deploying.