{"id":22901755,"url":"https://github.com/mbuczko/boot-flyway","last_synced_at":"2025-10-08T02:59:15.360Z","repository":{"id":31982299,"uuid":"35552547","full_name":"mbuczko/boot-flyway","owner":"mbuczko","description":"Flyway migrations for boot","archived":false,"fork":false,"pushed_at":"2016-10-10T20:56:33.000Z","size":9,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-24T02:21:32.387Z","etag":null,"topics":["clojure","flyway"],"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-05-13T14:05:00.000Z","updated_at":"2020-03-16T00:42:04.000Z","dependencies_parsed_at":"2022-08-26T12:00:53.203Z","dependency_job_id":null,"html_url":"https://github.com/mbuczko/boot-flyway","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mbuczko/boot-flyway","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbuczko%2Fboot-flyway","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbuczko%2Fboot-flyway/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbuczko%2Fboot-flyway/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbuczko%2Fboot-flyway/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mbuczko","download_url":"https://codeload.github.com/mbuczko/boot-flyway/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbuczko%2Fboot-flyway/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278881829,"owners_count":26062176,"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","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","flyway"],"created_at":"2024-12-14T01:40:47.244Z","updated_at":"2025-10-08T02:59:15.319Z","avatar_url":"https://github.com/mbuczko.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# boot-flyway\n[![Clojars Project](http://clojars.org/mbuczko/boot-flyway/latest-version.svg)](http://clojars.org/mbuczko/boot-flyway)\n\n[Flyway](http://flywaydb.org/) migrations with Clojure Boot build tool\n\nThis is a simple task for [boot](https://github.com/boot-clj/boot) to generate, apply and inspect database migrations.\nIt's mostly a blatant copy of metaphor's [lein-flyway](https://github.com/metaphor/lein-flyway) adjusted to boot.\n\n    $ boot flyway -h\n    Evolve your Database Schema easily and reliably across all your instances.\n\n    Options:\n      -h, --help                Print this help info.\n      -d, --driver DRIVER       Set database driver to DRIVER.\n      -j, --url URL             Set jdbc url to URL.\n      -u, --user USER           Set user to connect with to USER.\n      -p, --password PASS       Set password to connect with to PASS.\n      -c, --clean               Drop all objects in the configured schemas.\n      -i, --info                Prints the details and status information about all the migrations\n      -v, --validate            Validates the applied migrations against the available ones\n      -m, --migrate             Migrates pending migrations\n      -b, --baseline            Baselines an existing database, excluding all migrations upto and including baselineVersion\n      -r, --repair              Repair the metadata table\n      -g, --generate MIGRATION  Set name of generated migration to MIGRATION.\n      -o, --options OPT=VAL     Conj [OPT VAL] onto additional flyway options\n      \nOptions may contains one of flyway defined ones:\n\n    baseline-version-as-string, baseline-description, locations, table, schemas, sql-migration-prefix, sql-migration-separator, sql-migration-suffix, encoding, placeholders, placeholder-replacement, placeholder-prefix, placeholder-suffix, resolvers, callbacks, target, out-of-order, validate-on-migrate, clean-on-validation-error, baseline-on-migrate\n    \nNot all have been tested, though :)\n\nOne note, ```locations``` is set by default to ```db/migrations``` which means that flyway will be looking for migration files at this directory (within available classpath). Changing this location is as easy as providing ```-o locations=my_dir``` as task parameter. \n\nAs a consequence, also generating new migrations (```-g```) will try to find ```locations``` dir in classpath and place there newly created file.\n\n## Examples\n\nTo simplify all commands where driver and url is required, you may set task option in build.boot:\n\n    (task-options!\n       flyway  {:driver \"org.postgresql.Driver\"\n                :url \"jdbc:postgresql://localhost:5432/template1?user=postgres\"})\n   \nand now, you may omit ```-d``` and ```-j``` option from command line.\n\nTo generate brand new migration:\n\n    $ boot flyway -g \"add_user_table\"\n    Created resources/db/migrations/V20150514114110__add_user_table.sql\n\nTo clean database:\n\n    $ boot flyway -c\n\nTo get an information about applied / pending migrations:\n\n    $ boot flyway -i\n    +----------------+---------------------------+---------------------+---------+\n    | Version        | Description               | Installed on        | State   |\n    +----------------+---------------------------+---------------------+---------+\n    | 20150424001323 | add categories table      | 2015-05-14 11:24:11 | Success |\n    | 20150512013853 | add user table            | 2015-05-14 11:24:11 | Success |\n    | 20150512015102 | add is-confirmed to users | 2015-05-14 11:24:11 | Pending |\n    +----------------+---------------------------+---------------------+---------+\n    \nTo set baseline:\n\n    $ boot flyway -b -o baseline-version-as-string=5.2\n    \n\n##LICENSE\n\nCopyright © Michał Buczko\n\nLicensed under the EPL.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbuczko%2Fboot-flyway","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmbuczko%2Fboot-flyway","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbuczko%2Fboot-flyway/lists"}