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
20082026
-
…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 -
…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
comment by RadiozRadioz · 2024-11-16 · in Non-elementary group-by aggregations in Polars vs pandas -
…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 -
…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 -
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 -
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.
comment by xemoka · 2021-12-14 · in Pgmigrate: Write migrations using plain SQL -
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…
comment by robmccoll · 2021-10-25 · in Exploring PL/pgSQL: Strings, arrays, recursion, and parsing JSON -
…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…
comment by robmccoll · 2021-09-08 · in How We Went All In on sqlc/pgx for Postgres and Go -
…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
comment by rkwz · 2021-04-08 · in The architecture behind a one-person tech startup -
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 -
…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?
comment by dgellow · 2020-09-03 · in Show HN: ORM for TypeScript with no query-builder, supporting full SQL queries -
We use migrate[1]. [1]: https://github.com/golang-migrate/migrate
comment by stock_toaster · 2019-05-10 · in Ask HN: How does your development team handle database migrations? -
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 -
…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 -
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