Skip to content

Stupidly simple migration tool that reads the sql files in a directory and executing them when appropriate

License

Notifications You must be signed in to change notification settings

roystchiang/haskell_postgres_migration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

haskell_postgres_migration

Stupidly simple migration tool that reads the sql files in a directory and executing them when appropriate.

This is a simplified version of the Django migrate tool. Not the makemigration and migrate tool. JUST the migrate tool. It goes through the migration directory and applies each of the migrations that has not been applied.

Steps

  • Put all your SQL migration files in migration/

  • Either set your connection to PostgreSQL in the environment, or add the flags when executing the binary

  • ./postgres-migration-exe --POSTGRES_USERNAME="username" --POSTGRES_PASSSWORD="password" --POSTGRES_SERVER="server" --POSTGRES_DBNAME="dbname"

About

Stupidly simple migration tool that reads the sql files in a directory and executing them when appropriate

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published