- add tools.cli to project.clj
- add dependency for clojure.data.json, bump up next-jdbc to 1.3.955
- fix for resolving the migration path from a jar on Windows
- add exclusion for
parse-long
inmigratus.cli
fixed handling lazy for in migration creation
return the names when creating migrations with migratus.core/create
Fix error if any migration lacked an applied date
update rollback behavior to roll back last applied migration when no arguments provided
ability to exclude scripts based on globs
remove sanitation of migration table name
new feature: Run basic tests against PostgreSQL using testcontainers
new feature: Circle CI matrix runner - run against multiple clojure and jdk versions
new feature: Circle CI junit reports, run tests with kaocha
bug fix: Pass :connection and :datasource through :db
enhancement: Upgrade to next.jdbc 1.2.790 - Can pass {:connection-uri ...}
new feature: Provide deps.edn and kaocha test runner
new feature: Port migratus to next.jdbc
new feature: Multi migration dirs
feature: :transaction? config flag to toggle whether migrations happen within a transaction
new fearture: rollback-until-just-after function
new feature: property substitution
type hint for the data source, updated dependencies
Don't log value of :connection-uri in db-spec
skip logging connection-uri on connection failure to avoid logging passwords
Wrap modify-sql-fn to support returning a sequence
Fix DB connection leak in select-migrations
fix for checking whether table exists when using the latest pg driver
allow subfolders inside the migrations folder PR 176
improved error reporting for invalid migation file names
fixed error for transactional mode.
support for passing in an existing connection
censor passworrd in logs PR 166
fix doc strings, file system lookup for pending migrations
type hints for compiling with Graal
pr that adds the optional -- expect
sanity check in migrations
pr that adds :tx-handles-ddl?
flag that skips the automatic down that occurs on exception
- switched to use
db-do-commands
when applying migrations to address issue 149
PR 144 removed \n in SQL to also allow windows line terminators.
alter migration function to return nil if successful, :ignore
or :failure
when migrations are incomplete.
Add support for Thread cancellation during migrations.
Tests added for backout.
Update dependency on org.clojure/tools.logging
to 0.4.1
Update dependency on org.clojure/java.jdbc
to 0.7.7
Fix issue with handling directories that have spaces.
search Context classloader as fall back to system class loader for migration directory discovery
updated migratus.migrations/timestamp
to use UTC
updated pending-list
function to use log/debug
as well as return names of the migrations as a vector.
Changedd datetime
to timestamp
as it's supported by more databases.
As of version 0.9.1 Migratus writes a human-readable description, and timestamp when the migration was applied. This is a breaking change, as the schema for the migration table has changed. Users upgrading from pervious versions need the following additional columns in the migrations table:
[:applied "timestamp" "" ""]
[:description "VARCHAR(1024)" "" ""]
or
ALTER TABLE migratus.schema_migrations ADD COLUMN description varchar(1024);
--;;
ALTER TABLE migratus.schema_migrations ADD COLUMN applied timestamp with time zone;