Skip to content

Latest commit

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Supagrations

***UNDER DEVELOPMENT node-pg-migrate boilerplate app for supabase

Getting Started

  1. Create a project directory and cd into it:
 mkdir supabaseDBApp &&cd supabaseDBApp
  1. install dependencies:
 yarn install
  1. Create a file called .env and copy the contents of example.env into it.
  2. Copy the database connection string from the supabase console and update the DATABASE_URL in the .env file.
 DATABASE_URL=[paste your connection string here]

Commands

Commands to be run from project root like so:

 yarn [command] [args]
commanddescription
sg:create [migration-name]create a new migration file in the migrations directory
sg:up {N}runs all up migrations from the current state; optional int to run next N migrations
sg:down {N}rollback latest migration; optional int to rollback last N migrations
sg:redo {N}redo latest migration; optional int to redo last N migrations
sg:downallrollback all migrations
sg:deploy:stagingapply all migrations using .env.staging
sg:deploy:prodapply all migrations using .env.prod
sg:down:staging {N}rollback N (default 1) migrations using .env.staging,
sg:down:prod {N}rollback N (default 1) migrations using .env.prod

About

node-pg-migrate boilerplate app for supabase

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages