Skip to content

Commit

Permalink
select necessary fields from table
Browse files Browse the repository at this point in the history
  • Loading branch information
aman00323 committed Oct 29, 2021
1 parent 9f02b1e commit 68654aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ func (ms MigrationSet) PlanMigration(db *sql.DB, dialect string, m MigrationSour
}

var migrationRecords []MigrationRecord
_, err = dbMap.Select(&migrationRecords, fmt.Sprintf("SELECT * FROM %s", dbMap.Dialect.QuotedTableForQuery(ms.SchemaName, ms.getTableName())))
_, err = dbMap.Select(&migrationRecords, fmt.Sprintf("SELECT id FROM %s", dbMap.Dialect.QuotedTableForQuery(ms.SchemaName, ms.getTableName())))
if err != nil {
return nil, nil, err
}
Expand Down

0 comments on commit 68654aa

Please sign in to comment.