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

added migrations and seed script #83

Merged
merged 1 commit into from
Jun 24, 2024

Conversation

Devank-Sachdeva
Copy link
Contributor

Related Issue

closes #79

Description

added Supabase Migrations to create database structure according to the table_setup.md file

2 new environment variables added
SUPABASE_ACCESS_TOKEN
this can be obtained from https://supabase.com/dashboard/account/tokens
and
SUPABASE_DB_PASSWORD
this can be obtained when first created the account or resetting the db password from
SupaBase Dashboard -> Project Settings -> Database

To run Migrations run the commands
npx supabase link --project-ref <your project reference ID>
project reference ID can be found in the project settings (SupaBase Dashboard -> Project Settings)
and running
npx supabase db push
this creates the database structure

To Seed the database
npm run db:seed
this script seed your database with sample data

Type of PR

  • Bug fix
  • Feature enhancement
  • Documentation update
  • Other (specify): _______________

Screenshots / videos (if applicable)

image

Checklist:

  • I have performed a self-review of my code
  • I have read and followed the Contribution Guidelines.
  • I have tested the changes thoroughly before submitting this pull request.
  • I have provided relevant issue numbers, screenshots, and videos after making the changes.
  • I have commented my code, particularly in hard-to-understand areas.

@Yeasir0032 Yeasir0032 merged commit bdbc6eb into Yeasir0032:main Jun 24, 2024
1 check passed
Yeasir0032 added a commit that referenced this pull request Jun 27, 2024
Yeasir0032 added a commit that referenced this pull request Jun 27, 2024
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

Successfully merging this pull request may close these issues.

Automate the task to manually create database structure using supabase migration
2 participants