Skip to content

dbash -migrate is a simple database versionning and migration tool inspired from Rails migrations implemented in Bash. This tool enables to manage and track database schema changes, works for now only for Mysql.

License

Notifications You must be signed in to change notification settings

j2rome/dbash-migrate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SUMMARY

dbash-migrate is a tool which performs migration tasks like rake db:migrate command in Ruby.

dbash-migrate is a database versionning and migration tool inspired from Rails migrations. This tool enables to manage and track database schema changes.

Rake (db:migrate task) is a powerful tool to perform database migration, but we have to installed Ruby and Rake on your host. Such tools to manage projects (not using Ruby) are not always allowed on production server for some reasons. So, just to clone a sub tasks of rake db:migrate to perform database versionning and migration only in Bash.

PREREQUISITES

  • Bash

INSTALLATION

chmod +x db.sh

Every script migration is contained in directory under db/migrate. Each script name is composed by a timestamp and a description : db/migrate/20121211185339_a_description_for_this_migration.sh

This script skeleton is generated by generate_migration.sh In the future I will merge all in one file.

TESTS

cd test
./launch_tests.sh

About

dbash -migrate is a simple database versionning and migration tool inspired from Rails migrations implemented in Bash. This tool enables to manage and track database schema changes, works for now only for Mysql.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages