-
-
Notifications
You must be signed in to change notification settings - Fork 11.3k
SQL Editor: CLI commands to import snippet as migration/seed #17341
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
5 Ignored Deployments
|
| <TabsProvider> | ||
| <div className="flex flex-col items-start justify-between gap-4 px-6 py-3"> | ||
| <p className="text-sm mt-2"> | ||
| You can download this snippet as a local{' '} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll let Terry chime in on this haha but am wondering could simplify this to
You can download this snippet as a local migration via the Supabase CLI
studio/components/interfaces/SQLEditor/UtilityPanel/UtilityActions.tsx
Outdated
Show resolved
Hide resolved
|
This is just future consideration - but we could consider leveraging the new API side panel for this too |



🔍 Preview
https://studio-staging-git-feat-sql-editor-cli-import-supabase.vercel.app/dashboard/project/_/sql/new
Adds new button "Download as migration file" to SQL editor in the snippet context menu:
Clicking the button brings up a modal with pre-generated commands to import the current snippet as a migration, seed, or SQL file:

