mirror of https://github.com/status-im/migrate.git
make Force doc clear
This commit is contained in:
parent
eb02bc77fb
commit
4b91f503eb
|
@ -354,7 +354,7 @@ func (m *Migrate) Run(migration ...*Migration) error {
|
||||||
|
|
||||||
// Force sets a migration version.
|
// Force sets a migration version.
|
||||||
// It does not check any currently active version in database.
|
// It does not check any currently active version in database.
|
||||||
// It does not check if the database is dirty.
|
// It resets the dirty state to false.
|
||||||
func (m *Migrate) Force(version int) error {
|
func (m *Migrate) Force(version int) error {
|
||||||
if version < -1 {
|
if version < -1 {
|
||||||
panic("version must be >= -1")
|
panic("version must be >= -1")
|
||||||
|
|
Loading…
Reference in New Issue