Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 575 Bytes

File metadata and controls

21 lines (15 loc) · 575 Bytes

Digitutor

Supabase types and db

Gen types from remote

supabase gen types typescript --project-id "$PROJECT_REF" > src/supabase.ts

Gen types from local

supabase gen types typescript --local > src/supabase.ts

Migration

  • With migration file already existing:
    • commit and push, and upon merge will be handled by cicd
    • to test locally, run supabase db reset

Manually create migration file

supabase migration new paste SQL into new .sql file

Auto diff migration file

supabase db diff -f insert_name_of_migration