Plan a migration to version.
(db *sql.DB, dialect string, m MigrationSource, dir MigrationDirection, version int64)
| 618 | |
| 619 | // Plan a migration to version. |
| 620 | func (ms MigrationSet) PlanMigrationToVersion(db *sql.DB, dialect string, m MigrationSource, dir MigrationDirection, version int64) ([]*PlannedMigration, *gorp.DbMap, error) { |
| 621 | return ms.planMigrationCommon(db, dialect, m, dir, 0, version) |
| 622 | } |
| 623 | |
| 624 | // A common method to plan a migration. |
| 625 | func (ms MigrationSet) planMigrationCommon(db *sql.DB, dialect string, m MigrationSource, dir MigrationDirection, max int, version int64) ([]*PlannedMigration, *gorp.DbMap, error) { |
no test coverage detected