Skip to content

Commit 1d4e6d7

Browse files
Prometheus2677FPiety0521
authored and
FPiety0521
committed
Make "force db version" answer more descriptive
1 parent 85b007b commit 1d4e6d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GETTING_STARTED.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ It's also worth checking your migrations in a separate, containerized environmen
3535
**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.
3636

3737
## Forcing your database version
38-
In case you run a migration that contained an error, migrate will not let you run other migrations on the same database. You will see an error `Dirty database version 1. Fix and force version`, even when you fix migration. This means your database was marked as 'dirty'.
38+
In case you run a migration that contained an error, migrate will not let you run other migrations on the same database. You will see an error like `Dirty database version 1. Fix and force version`, even when you fix the erred migration. This means your database was marked as 'dirty'.
3939
You need to investigate the migration error - was your migration applied partially, or was it not applied at all? Once you know, you should force your database to a version reflecting it's real state. You can do so with `force` command:
4040
```
4141
migrate -path PATH_TO_YOUR_MIGRATIONS -database YOUR_DATBASE_URL force VERSION

0 commit comments

Comments
 (0)