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

Automate the task to manually create database structure using supabase migration #79

Closed
Devank-Sachdeva opened this issue May 28, 2024 · 3 comments · Fixed by #83
Closed
Assignees
Labels
enhancement New feature or request gssoc level2

Comments

@Devank-Sachdeva
Copy link
Contributor

Is your feature request related to a problem? Please describe.
As of now, even to start the project we have to manually create the table schema in supabase dashboard by executing SQL commands provided in table_setup.md. And even after that to test a functionality we have to manually create table entries which is very inconvenient and delays meaningful time which could have been focused on development

Describe the solution you'd like
We can automate the above process my using migrations
just by executing few commands like

Links the current project with the supabase project

npx supabase link --project-ref <Project-id>

Migrate the Supabase database to the desired structure defined in table_setup.md

npx supabase db push

we can seed the data (filling the table with sample data) after the tables have migrated using seeding

Additional context
All of the above will speedup the process of setting up the project locally

Copy link

Hi there! Thanks for opening this issue. We appreciate your contribution to this open-source project. We aim to respond or assign your issue as soon as possible.

@Devank-Sachdeva
Copy link
Contributor Author

I will be happy to build this functionality for the project

@Yeasir0032
Copy link
Owner

Thanks for pointing it out.
Good luck
@Devank-Sachdeva

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request gssoc level2
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants