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

Automatically handle storing insert/update/delete of rows in an enum table #8439

Open
RobSchilderr opened this issue Apr 26, 2022 · 3 comments
Labels
c/cli Related to CLI c/migrations Related to migrations k/enhancement New feature or improve an existing feature t/product-platform

Comments

@RobSchilderr
Copy link

RobSchilderr commented Apr 26, 2022

Is your proposal related to a problem?

When refreshing the migration from scratch it is troublesome to insert all the rows in an enum table by hand. As far as I know, there is no official solution to this problem yet. A similar issue from the past has been closed.

Describe the solution you'd like

It would be great if Hasura had a functionality that could automatically handle storing insert/update/delete of rows in an enum table. I understand if this feature request is too complicated, please let me know as well.

Describe alternatives you've considered

If the feature is approved, would you be willing to submit a PR?

@RobSchilderr RobSchilderr added the k/enhancement New feature or improve an existing feature label Apr 26, 2022
@rikinsk rikinsk added the c/migrations Related to migrations label Apr 28, 2022
@rikinsk
Copy link
Member

rikinsk commented Apr 28, 2022

related #4222

@RobSchilderr
Copy link
Author

Any updates on this?

@fonzarely
Copy link

I remember I did check 'save as migration' when inserting a new value in my enums. But it seems it's gone.
Maybe my sample can help you to make your migrations too.

INSERT INTO "public"."tags_types"("type", "comment") VALUES (E'style', E'tag de style');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c/cli Related to CLI c/migrations Related to migrations k/enhancement New feature or improve an existing feature t/product-platform
Projects
None yet
Development

No branches or pull requests

4 participants