Skip to content

Commit

Permalink
updated stmt
Browse files Browse the repository at this point in the history
  • Loading branch information
MonikaCat committed Jan 22, 2024
1 parent f04fc00 commit 4164812
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database/legacy/msgexec/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func (db *Migrator) Migrate() error {
func (db *Migrator) getAllMsgExecStoredInDatabase() ([]dbtypes.MessageRow, error) {
const msgType = "cosmos.authz.v1beta1.MsgExec"
var rows []dbtypes.MessageRow
err := db.SQL.Select(&rows, `SELECT * FROM message WHERE type = $1 ORDER BY height ASC`, msgType)
err := db.SQL.Select(&rows, `SELECT * FROM message WHERE type = $1 AND height > $2 ORDER BY height ASC`, msgType, 13000000)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 4164812

Please sign in to comment.