Skip to content

bf/go-simple-postgresql-migrate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-simple-postgresql-migrate

An extremely simple PostgreSQL migration library. Migrations will be stored in plain SQL as text files in local folder postgresql-migrations.

How to get started

Check out the repository, download dependencies and install:

go mod download; go build; go install

Initialize the database connection with

./go-simple-postgresql-migrate init

Now you can create new migrations for the database schema with

./go-simple-postgresql-migrate create my new transaction

Apply all migrations to your database with

./go-simple-postgresql-migrate up

Roll-back the most recent migration with

./go-simple-postgresql-migrate down

About

a simple go-based database migration tool for PostgreSQL

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages