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
+4-4
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.
Copy file name to clipboardExpand all lines: database/cockroachdb/TUTORIAL.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,7 @@ And in the `.down.sql` let's delete it:
50
50
```
51
51
DROP TABLE IF EXISTS example.users;
52
52
```
53
-
By adding `IF EXISTS/IF NOT EXISTS` we are making migrations idempotent - you can read more about idempotency in [getting started](GETTING_STARTED.md#create-migrations)
53
+
By adding `IF EXISTS/IF NOT EXISTS` we are making migrations idempotent - you can read more about idempotency in [getting started](/GETTING_STARTED.md#create-migrations)
54
54
55
55
## Run migrations
56
56
```
@@ -139,4 +139,4 @@ func main() {
139
139
}
140
140
}
141
141
```
142
-
You can find details [here](README.md#use-in-your-go-project)
142
+
You can find details [here](README.md#use-in-your-go-project)
0 commit comments