Wandern is a small database migration tool for python.
Wandern, for now, only supports PostgreSQL. Support for the following dialects will be available soon.
- MySQL
- Sqlite
- MSSQL
- wandern migrate up -N num
- wandern migrate down -N num
- wandern migrate status
- wandern migrate up
- wandern reset
- wandern generate
- wandern version
- wandern help
This is the document outlining the MVP (MInimum Viable Product) for Wandern. For the first initial release, it should be able to do the following:
- Ability to generate skeleton migration scripts with UP and DOWN revisions.
- The migration scripts will be either SQL or Python.
- Ability to keep track of the migration graph. And resolve conflicts if there are diverging branches.
- Ability to migrate up and down a specific number of steps.
- Ability to reset all migrations.
For Future releases:
- Ability to detect dialect-specific SQL code and suggest changes
- run
wandern generate
to create an empty migration script with default file name. - can be configured via wandern settings.
- can set custom file names in settings. For example, {version}{description}{timestamp}.sql
version
- version number for each migration, can be integer