Skip to content
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

Add supabase cli action #22

Open
romain-sen opened this issue Jun 19, 2023 · 4 comments
Open

Add supabase cli action #22

romain-sen opened this issue Jun 19, 2023 · 4 comments

Comments

@romain-sen
Copy link

How can we add the Supabase CLI action to the workflow properly ? Do we also need to change how we write migrations ?

@imbhargav5
Copy link
Owner

imbhargav5 commented Jun 19, 2023

So for type generation it seems like there is an easy way in the CLI action. I don't know if migrations in Supabase CLI action make sense to me. Not sure how I would manage them there.

@romain-sen
Copy link
Author

Would it be relevant to create an action that, when a file is changed in supabase/migrations/*.sql, updates the types + pushes the migrations to the project db?
What do you think?

@imbhargav5
Copy link
Owner

I think so. It's the other way around though. It should update the database with the new migrations and then generate the types from the new database structure.

@imbhargav5
Copy link
Owner

This is a great idea. For sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants