All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog
- Read database URL from env variable by default.
- Add ability to set a name for the env variable of database URL.
- Add ability to run commands from a jar.
- Add CLI-interface for Leiningen support
- Make
migrations-dir
andmodels-file
params optional with default value. - BREAKING
migrations-dir
andmodels-file
should contain relative path to resources dir. - Add ability to set custom resources dir using
:resources-dir
. - Upgrade dependencies.
- If you use path values as:
{:migrations-dir "resources/db/migrations"
:models-file "resources/db/models.edn"}
then you can just remove that from config and everything will work as expected because those values are defaults now.
- If you have custom values for paths:
{:migrations-dir "resources/path/to/migrations"
:models-file "resources/path/to/models.edn"}
then you need to remove resources
dir from paths, because now it is a default:
{:migrations-dir "path/to/migrations"
:models-file "path/to/models.edn"}
- If you use custom resources dir, you can specify it, for example, as:
{...
:resources-dir "content"}
- Format SQL output from explain command.
- Add an example minimal setup with empty models.
- Update doc: remove unique option from id fields in examples.
- Fix ordering actions for dropping table with fk reference.
- Add ability to manage column level CHECK constraints.
- Add fixed name for constraints.
- Fix validation of referenced field for foreign key constraint.
- Add auto-generated backward migrations.
- Add ability to manage a comment on field.
- Add ability to create a partial indexes.
- Add all data types without parameters for PostgreSQL.
- Add bit data types.
- Add interval data type.
- Add parameterised time and timestamp data types with time zone.
- Add char and varchar data types without parameters.
- Add ability to create a field with any type as an array.
- Fix validation of parameter for float data type.
- Fix alter-column action in case column type changing.
- Update check mark for applied migrations in list command output.
- Fix cljdoc discovery by git tag.
- Add Enum field type.
- Add ability to explain migration in human-readable format.
- Add help command.
- Add model name to the auto-generated migration name.
- Add numeric/decimal field type.
- Do not capitalize string value of option
:default
. Fixed by upgrading honeysql. - Do not drop fk constraint if fk option for field was empty.
- Upgrade dependencies: honeysql=2.4.1066, next.jdbc=1.3.883.
- Add ability to make migrations and migrate for changing table and column.
- Add ability to drop table and column.
- Add ability to create, alter and drop index.
- Add ability to migrate to specific migration number in any direction.
- Add ability to print list of migrations with statuses.
- Add ability to print raw SQL for migration.
- Add ability to create, migrate and explain sql migration type.
- Add ability to show error messages for users.