{"id":22901748,"url":"https://github.com/mbuczko/boot-ragtime","last_synced_at":"2025-09-07T11:43:08.308Z","repository":{"id":31071007,"uuid":"34629917","full_name":"mbuczko/boot-ragtime","owner":"mbuczko","description":"Ragtime migrations with Clojure Boot build tool","archived":false,"fork":false,"pushed_at":"2018-01-11T20:02:30.000Z","size":18,"stargazers_count":20,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-08T02:02:10.420Z","etag":null,"topics":["clojure","ragtime","ragtime-migrations"],"latest_commit_sha":null,"homepage":null,"language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mbuczko.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-26T20:27:08.000Z","updated_at":"2020-04-17T21:16:17.000Z","dependencies_parsed_at":"2022-09-02T10:00:24.000Z","dependency_job_id":null,"html_url":"https://github.com/mbuczko/boot-ragtime","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbuczko%2Fboot-ragtime","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbuczko%2Fboot-ragtime/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbuczko%2Fboot-ragtime/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbuczko%2Fboot-ragtime/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mbuczko","download_url":"https://codeload.github.com/mbuczko/boot-ragtime/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252983761,"owners_count":21835764,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clojure","ragtime","ragtime-migrations"],"created_at":"2024-12-14T01:40:44.487Z","updated_at":"2025-05-08T02:05:03.150Z","avatar_url":"https://github.com/mbuczko.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# boot-ragtime\n\n[![Clojars Project](http://clojars.org/mbuczko/boot-ragtime/latest-version.svg)](http://clojars.org/mbuczko/boot-ragtime)\n\nRagtime migrations with Clojure Boot build tool.\n\nThis is a simple task for [boot](https://github.com/boot-clj/boot) to generate, apply and rollback migrations with weavejester's [ragtime](https://github.com/weavejester/ragtime).\n\n    $ boot ragtime -h\n    Apply/rollback ragtime migrations\n\n    Options:\n      -h, --help                     Print this help info.\n      -d, --database DATABASE        DATABASE sets database jdbc url.\n      -g, --generate MIGRATION       MIGRATION sets name of generated migration.\n      -m, --migrate                  Run all the migrations not applied so far.\n      -r, --rollback                 Increase number of migrations to be immediately rolled back.\n      -l, --list-migrations          List all migrations to be applied.\n      -c, --driver-class DRIVER      DRIVER sets the JDBC driver class name to initialize.\n          --directory DIRECTORY      DIRECTORY sets directory to store migrations in.\n          --ragtime-version VERSION  VERSION sets the version of ragtime to use. default: 0.7.2.\n\nTo use the ragtime task, require it in `build.boot`:\n\n    (require '[mbuczko.boot-ragtime :refer [ragtime]])\n\n## Examples\n\nTo generate brand new migration (up- and down-files located in migrations/ folder):\n\n    boot ragtime -g \"add-user-table\"\n    \nTo list all the migration not applied so far:\n\n    boot ragtime -l -d \"jdbc:postgresql://localhost:5432/template1?user=postgres\"\n    \nTo apply those migrations:\n\n    boot ragtime -m -d \"jdbc:postgresql://localhost:5432/template1?user=postgres\"\n\nFinally to rollback latest migration:\n\n    boot ragtime -r -d \"jdbc:postgresql://localhost:5432/template1?user=postgres\"\n    \nTo rollback 2 latest migrations:\n\n    boot ragtime -rr -d ...\n    \nTo simplify those commands you may set task option in build.boot:\n\n    (task-options!\n     ragtime {:database \"jdbc:postgresql://localhost:5432/template1?user=postgres\"})\n   \nand now, you may omit -d ... option from command line.\n\n## JDBC Driver\n\nIf you see an exception like `java.sql.SQLException: No suitable driver found`,\nyou must explicitly pass the class name of the JDBC driver you're using.  For\npostgres, this is `org.postgresql.Driver`.\n\nTo apply migrations using a specified driver name, you might do:\n\n    boot ragtime -m -c org.postgresql.Driver -d \"jdbc:postgresql://localhost:5432/template1?user=postgres\"\n\n## Ragtime Version\n\nCurrently the default version of ragtime that is used is `0.7.2`. If you need to use another version, this\ncan be specified using the `ragtime-version` option.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbuczko%2Fboot-ragtime","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmbuczko%2Fboot-ragtime","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbuczko%2Fboot-ragtime/lists"}