sourcegraph/.github
Keegan Carruthers-Smith 36a4c13db8
migrations: New migrations use transactions (#2486)
We discovered that the migration library does not use transactions, nor has it
ever used transactions. The only place it uses transactions is for SetVersion,
not the actual migrations. The [README][1] for the postgres driver encourages
the use of transactions for multi-statement migrations. We believe it is better
to just always use transactions.

We added a template for the created migrations. It uses a transaction and it includes comments with advice from the README.

[1]: https://sourcegraph.com/github.com/golang-migrate/migrate@v4.2.5/-/blob/database/postgres/README.md?view=code#L26
2019-03-01 09:42:16 +02:00
..
ISSUE_TEMPLATE remove unneeded deploy-sourcegraph issue template 2019-02-04 12:48:40 +01:00
CODEOWNERS migrations: New migrations use transactions (#2486) 2019-03-01 09:42:16 +02:00
pull_request_template.md one line template 2018-12-20 23:57:40 -08:00
stale.yml Publish Sourcegraph as open source 🚀 2018-09-30 23:13:36 -07:00