Skip to content
forked from xataio/pgroll

PostgreSQL zero-downtime migrations made easy

License

Notifications You must be signed in to change notification settings

go-baselib/pgroll

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pg-roll

⚠️ Under development ⚠️

PostgreSQL zero-downtime migrations made easy.

Getting started (development)

  • Bring a development PostgreSQL up:

    docker compose up
  • Initialize pg-roll (first time only):

    go run . init
  • Start a migration:

    go run . start examples/01_create_tables.json
  • Inspect the results:

    psql postgres://localhost -U postgres
    \d+ public.*
    \d+ 01_create_tables.*
  • (Optional) Rollback the migration (undo):

    go run . rollback
  • Complete the migration:

    go run . complete

About

PostgreSQL zero-downtime migrations made easy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 99.8%
  • Other 0.2%