Database / Supabase Intermediate to Advanced Interview Questions
How does Supabase Studio's SQL editor differ from running migrations through the CLI in a CI pipeline?
Studio's SQL editor executes a statement immediately and directly against the connected project's live database, with no history file created and no automatic record of what ran or when beyond Postgres's own logs — it's built for quick, ad hoc exploration and one-off fixes.
The CLI's migration workflow instead treats every schema change as a versioned file (supabase migration new ...) that gets committed to source control, reviewed like any other code change, and applied through supabase db push or a CI job in a defined, repeatable order across every environment — local, staging, and production all end up at the identical schema state because they all replay the same ordered file history rather than each having its own ad hoc set of manual changes.
The practical implication is that anything run only in Studio's SQL editor and never captured as a migration file effectively doesn't exist from the perspective of any other environment; the next `supabase db push` against a fresh environment won't recreate that change, since there's no file recording that it should happen. Studio is best treated as a tool for inspection and quick manual fixes, with anything structural or repeatable expected to also land as a committed migration.
Invest now in Acorns!!! 🚀
Join Acorns and get your $5 bonus!
Acorns is a micro-investing app that automatically invests your "spare change" from daily purchases into diversified, expert-built portfolios of ETFs. It is designed for beginners, allowing you to start investing with as little as $5. The service automates saving and investing. Disclosure: I may receive a referral bonus.
Invest now!!! Get Free equity stock (US, UK only)!
Use Robinhood app to invest in stocks. It is safe and secure. Use the Referral link to claim your free stock when you sign up!.
The Robinhood app makes it easy to trade stocks, crypto and more.
Webull! Receive free stock by signing up using the link: Webull signup.
More Related questions...
