code: func (m *Migrator) getMigrationStatuses() error {
  	for _, migration := range m.migrations {
  		row := m.DB.QueryRow(m.dbAdapter.GetMigrationSql(), migration.Id)
  		var mid uint64
  		err := row.Scan(&mid)
  		if err == sql.ErrNoRows {
  			continue
  		}
  		if err != nil {
  			m.logger.Printf(
  				"Error getting migration status for %s: %v",
  				migration.Name,
  				err,
  			)
  			return err
  		}
  		migration.Status = Active
  	}
  	return nil
  }
docs: // Queries the migration table to determine the status of each
  // migration.