Hacker GitHub

← All repos

golang-migrate/migrate

View on GitHub ↗ ★ 19,001 Go

Database migrations. CLI and Golang library.

15 mentions on Hacker News by 12 people: 0 stories, 15 comments · first 2018-12-17 · latest 2025-02-13

Mentions per year 15 mentions · busiest year 2021 (4)
20082026
  1. …tried the following but it doesn't seem to work (it installs without the tags): go install -tags 'postgres' github.com/golang-migrate/migrate/v4/cmd/migrate@latest
    comment by eberkund · 2025-02-13 · in Go 1.24 Is Released
  2. …for most of them. Use the ORM to manage schema, then SQL for a one-off query - still works. [1]: https://github.com/golang-migrate/migrate
  3. …not sure which one I prefer: * using an external tool, just like any other RDBMS (I know and use https://github.com/golang-migrate/migrate ) * embedding migrations in the app and letting the app manage migrating up.
    comment by Sphax · 2024-09-27 · in Scalable Server SQLite Apps
  4. …ORM. Migrations (as just 1 example) doesn't need to be hard, simple tools like flyway, or migrate ( https://github.com/golang-migrate/migrate ) achieve a similar result (while also keeping you on the path of writing SQL!). Deep and complex…
    comment by joaodlf · 2023-08-14 · in Python: Just Write SQL
  5. When it comes to migrations, I've been fine with https://github.com/golang-migrate/migrate There are a multitude of extra things to consider, but none of those things are, in my opinion, imperative to having success with SQL in Python.…
    comment by joaodlf · 2023-08-14 · in Python: Just Write SQL
  6. If this interest you, both dbmate [ https://github.com/amacneil/dbmate ] and golang/migrate [ https://github.com/golang-migrate/migrate ] are in very similar spaces---and can be provided as a single executable.
  7. I use this https://github.com/golang-migrate/migrate in a deploy step to each environment with the upgrade / downgrade scripts committed to the repo alongside the code. The scripts can do pretty much anything you need to do in PG including…
  8. …code to reflect that. I define my schema in sql files and handle database migrations using https://github.com/golang-migrate/migrate . If you take this approach, you can mostly avoid exposing details about the SQL driver being used, and…
  9. …run the migrations and then toggle the probe back to true. Here are some migration libraries: Go - https://github.com/golang-migrate/migrate Node - https://github.com/salsita/node-pg-migrate
  10. I am convinced that https://github.com/golang-migrate/migrate is enough. We've used it for ~3 years now and if it is enough for a platform with hundreds of scaled containers, including migration from docker swarm to gcp kubernetes and…
    comment by domano · 2020-09-24 · in Database Version Control with Liquibase
  11. …it yourself too. golang-migrate/migrate can be used either as a Go library or as a CLI tool. https://github.com/golang-migrate/migrate Or did I misunderstand the issues you're talking about?
  12. We use migrate[1]. [1]: https://github.com/golang-migrate/migrate
  13. I personally tend to prefer migrate[1] as it doesn't require java. [1]: https://github.com/golang-migrate/migrate
    comment by stock_toaster · 2019-01-22 · in Why We Chose Rails to Build Gitlab
  14. …etc., no front end JS library). No migrations. Had the exact same question. Was looking at this: https://github.com/golang-migrate/migrate Thinking Vue for front end also. Very timely main post because have been wondering best way to lay…
    comment by mythrwy · 2018-12-17 · in Vue.js and Go example project
  15. I like go-migrate [0] with postgres and sqlx [1] for just the right amount of orm. [0] https://github.com/golang-migrate/migrate [1] http://jmoiron.github.io/sqlx/
    comment by sambull · 2018-12-17 · in Vue.js and Go example project