Execute a set of migrations Will apply at the target `version` of migration. Cannot be a negative value. Returns the number of applied migrations.
(db *sql.DB, dialect string, m MigrationSource, dir MigrationDirection, version int64)
| 488 | // |
| 489 | // Returns the number of applied migrations. |
| 490 | func ExecVersion(db *sql.DB, dialect string, m MigrationSource, dir MigrationDirection, version int64) (int, error) { |
| 491 | return ExecVersionContext(context.Background(), db, dialect, m, dir, version) |
| 492 | } |
| 493 | |
| 494 | // Execute a set of migrations with an input context. |
| 495 | // |
searching dependent graphs…