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
Copy file name to clipboardExpand all lines: README.md
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -76,6 +76,27 @@ async function() {
76
76
}
77
77
```
78
78
79
+
### Validating migration files
80
+
81
+
Occasionally, if two people are working on the same codebase independently, they might both create a migration at the same time. For example, `5_add-table.sql` and `5_add-column.sql`. If these both get pushed, there will be a conflict.
82
+
83
+
While the migration system will notice this and refuse to apply the migrations, it can be useful to catch this as early as possible.
84
+
85
+
The `loadMigrationFiles` function can be used to check if the migration files satisfy the rules.
0 commit comments