diff --git a/crates/sui-indexer-alt/migrations/2024-11-25-211949_obj_info/up.sql b/crates/sui-indexer-alt/migrations/2024-11-25-211949_obj_info/up.sql index 67ff1e097e19b..e04214a8e2cba 100644 --- a/crates/sui-indexer-alt/migrations/2024-11-25-211949_obj_info/up.sql +++ b/crates/sui-indexer-alt/migrations/2024-11-25-211949_obj_info/up.sql @@ -40,28 +40,28 @@ CREATE TABLE IF NOT EXISTS obj_info ); CREATE INDEX IF NOT EXISTS obj_info_owner -ON obj_info (owner_kind, owner_id, cp_sequence_number, object_id); +ON obj_info (owner_kind, owner_id, cp_sequence_number DESC, object_id); CREATE INDEX IF NOT EXISTS obj_info_pkg -ON obj_info (package, cp_sequence_number, object_id); +ON obj_info (package, cp_sequence_number DESC, object_id); CREATE INDEX IF NOT EXISTS obj_info_mod -ON obj_info (package, module, cp_sequence_number, object_id); +ON obj_info (package, module, cp_sequence_number DESC, object_id); CREATE INDEX IF NOT EXISTS obj_info_name -ON obj_info (package, module, name, cp_sequence_number, object_id); +ON obj_info (package, module, name, cp_sequence_number DESC, object_id); CREATE INDEX IF NOT EXISTS obj_info_inst -ON obj_info (package, module, name, instantiation, cp_sequence_number, object_id); +ON obj_info (package, module, name, instantiation, cp_sequence_number DESC, object_id); CREATE INDEX IF NOT EXISTS obj_info_owner_pkg -ON obj_info (owner_kind, owner_id, package, cp_sequence_number, object_id); +ON obj_info (owner_kind, owner_id, package, cp_sequence_number DESC, object_id); CREATE INDEX IF NOT EXISTS obj_info_owner_mod -ON obj_info (owner_kind, owner_id, package, module, cp_sequence_number, object_id); +ON obj_info (owner_kind, owner_id, package, module, cp_sequence_number DESC, object_id); CREATE INDEX IF NOT EXISTS obj_info_owner_name -ON obj_info (owner_kind, owner_id, package, module, name, cp_sequence_number, object_id); +ON obj_info (owner_kind, owner_id, package, module, name, cp_sequence_number DESC, object_id); CREATE INDEX IF NOT EXISTS obj_info_owner_inst -ON obj_info (owner_kind, owner_id, package, module, name, instantiation, cp_sequence_number, object_id); +ON obj_info (owner_kind, owner_id, package, module, name, instantiation, cp_sequence_number DESC, object_id);