Execute a set of migrations Will apply at most `max` migrations. Pass 0 for no limit (or use Exec). Returns the number of applied migrations.
(db *sql.DB, dialect string, m MigrationSource, dir MigrationDirection, max int)
| 470 | // |
| 471 | // Returns the number of applied migrations. |
| 472 | func ExecMax(db *sql.DB, dialect string, m MigrationSource, dir MigrationDirection, max int) (int, error) { |
| 473 | return migSet.ExecMax(db, dialect, m, dir, max) |
| 474 | } |
| 475 | |
| 476 | // Execute a set of migrations with an input context. |
| 477 | // |
searching dependent graphs…