You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**IMPORTANT:** In a project developed by more than one person there is a chance of migrations inconsistency - e.g. two developers can create conflicting migrations, and the developer that created his migration later gets it merged to the repository first.
13
+
**IMPORTANT:** In a project developed by more than one person there is a chance of migrations inconsistency - e.g. two developers can create conflicting migrations, and the developer that created their migration later gets it merged to the repository first.
14
14
Developers and Teams should keep an eye on such cases (especially during code review).
15
15
[Here](https://github.com/golang-migrate/migrate/issues/179#issuecomment-475821264) is the issue summary if you would like to read more.
16
16
@@ -30,7 +30,7 @@ Just add the code to your app and you're ready to go!
30
30
31
31
Before commiting your migrations you should run your migrations up, down, and then up again to see if migrations are working properly both ways.
32
32
(e.g. if you created a table in a migration but reverse migration did not delete it, you will encounter an error when running the forward migration again)
33
-
It's also worth checking your migrations in a separate, containerized environment. You can find some tools in the end of this document.
33
+
It's also worth checking your migrations in a separate, containerized environment. You can find some tools at the [end of this document](#further-reading).
34
34
35
35
**IMPORTANT:** If you would like to run multiple instances of your app on different machines be sure to use a database that supports locking when running migrations. Otherwise you may encounter issues.
Copy file name to clipboardExpand all lines: README.md
+12-5Lines changed: 12 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,11 @@
1
-
[](https://github.com/golang-migrate/migrate/actions/workflows/ci.yaml?query=branch%3Amaster)
1
+
[](https://github.com/golang-migrate/migrate/actions/workflows/ci.yaml?query=branch%3Amaster)
We prefer [coordinated disclosures](https://en.wikipedia.org/wiki/Coordinated_vulnerability_disclosure). To start one, create a GitHub security advisory following [these instructions](https://docs.github.com/en/code-security/security-advisories/guidance-on-reporting-and-writing/privately-reporting-a-security-vulnerability)
15
+
16
+
Please suggest potential impact and urgency in your reports.
$ curl -L https://github.com/golang-migrate/migrate/releases/download/$version/migrate.$platform-amd64.tar.gz | tar xvz
10
+
$ curl -L https://github.com/golang-migrate/migrate/releases/download/$version/migrate.$os-$arch.tar.gz | tar xvz
11
11
```
12
12
13
13
### MacOS
@@ -63,7 +63,7 @@ $ go install -tags 'postgres' github.com/golang-migrate/migrate/v4/cmd/migrate@l
63
63
to build the cli for use with other databases, replace the `postgres` build tag
64
64
with the appropriate database tag(s) for the databases desired. The tags
65
65
correspond to the names of the sub-packages underneath the
66
-
[`database`](../database) package.
66
+
[`database`](../../database) package.
67
67
1. Similarly to the database build tags, if you need to support other sources, use the appropriate build tag(s).
68
68
1. Support for build constraints will be removed in the future: https://github.com/golang-migrate/migrate/issues/60
69
69
1. For versions of Go 1.15 and lower, [make sure](https://github.com/golang-migrate/migrate/pull/257#issuecomment-705249902) you're not installing the `migrate` CLI from a module. e.g. there should not be any `go.mod` files in your current directory or any directory from your current directory to the root
0 commit comments