-
Notifications
You must be signed in to change notification settings - Fork 86
Upgrading from 0.3.x
Ragtime has changed significantly from version 0.3.9 to 0.4.0.
Perhaps most prominent change is that there is no longer a dedicated Leiningen plugin. To get the same functionality, see the Leiningen Integration page.
The ragtime/ragtime.sql and ragtime/ragtime.sql.files packages have been merged into ragtime/ragtime.jdbc.
Ragtime no longer tries to automatically split up a SQL migration, as this is prone to error. Instead, SQL files must be split up manually, dependent on the database being used. See the SQL Migrations page.
The ragtime.repl namespace has been introduced to the ragtime/ragtime.core package for REPL-based migrate and rollback commands.
The ragtime.core/connection multimethod has been removed. Instead, library-specific functions like ragtime.jdbc/sql-database are used to generate Migratable database connections.
The ragtime.core namespace has been changed to use explicit migration indexes. This makes the namespace more functional and predictable, at the cost of some convenience. The ragtime.repl namespace takes over the job of making things convenient, and maintains an implicit migration index in an atom, which is updated every time the migrate or rollback functions are called.