From 7e81a961f552b0f11752c95fa2ecfa4681f5cf36 Mon Sep 17 00:00:00 2001 From: Urvi Date: Wed, 11 Oct 2023 21:08:00 -0700 Subject: [PATCH] Add notransaction --- services/horizon/internal/db2/schema/bindata.go | 6 +++--- .../db2/schema/migrations/65_remove_unused_indexes.sql | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/services/horizon/internal/db2/schema/bindata.go b/services/horizon/internal/db2/schema/bindata.go index afb2b23b58..03b8dfad3a 100644 --- a/services/horizon/internal/db2/schema/bindata.go +++ b/services/horizon/internal/db2/schema/bindata.go @@ -61,7 +61,7 @@ // migrations/62_claimable_balance_claimants.sql (1.428kB) // migrations/63_add_contract_id_to_asset_stats.sql (153B) // migrations/64_add_payment_flag_history_ops.sql (300B) -// migrations/65_remove_unused_indexes.sql (2.681kB) +// migrations/65_remove_unused_indexes.sql (2.677kB) // migrations/6_create_assets_table.sql (366B) // migrations/7_modify_trades_table.sql (2.303kB) // migrations/8_add_aggregators.sql (907B) @@ -1355,7 +1355,7 @@ func migrations64_add_payment_flag_history_opsSql() (*asset, error) { return a, nil } -var _migrations65_remove_unused_indexesSql = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x9c\x55\xcd\x6e\xdb\x3c\x10\xbc\xfb\x29\x88\x5c\x62\xe3\x8b\x4f\xb9\x25\xf8\x02\xb4\xb5\xda\xfa\xe2\xb4\xfe\x41\x73\x23\x28\x71\x6d\xb1\x91\x48\x81\xbb\x4a\xe3\xb7\x2f\x64\xc9\x0e\xf5\x43\xc9\xea\x4d\x10\x67\x66\x57\xb3\xdc\xd1\x7c\xce\xfe\x4b\xd5\xc1\x0a\x02\xb6\xcb\x26\x93\xf9\x9c\xe5\x3a\x47\x90\x4c\x69\xa9\x22\xc0\xc9\x62\xfd\xfc\x83\x2d\x57\x8b\xe0\x85\x2d\xbf\xb2\xe0\x65\xb9\xd9\x6e\x98\x88\x22\x93\x6b\x42\x1e\x9b\x14\xb8\x34\xa9\x50\xfa\x71\x00\xaa\xf4\x3e\x11\xa4\x8c\xe6\x12\x90\x94\x3e\x3d\xfb\x48\x88\x40\x3c\x3c\x72\x85\x98\x83\xf5\xa0\xa2\x44\xa8\x54\x84\x22\x4c\x80\x87\x22\x11\x3a\x02\x2c\x48\xe5\x7b\x4d\xe8\xe1\xc5\x64\x25\x27\x95\x02\x4f\x8c\x79\xcd\x33\x0f\x4c\x69\x09\xef\x3c\x56\x48\xc6\x1e\x39\xec\xf7\x10\x11\x72\xa3\x39\x1d\x33\xb8\x8a\x93\x80\x3c\x80\x3d\x71\xa2\xc4\x20\x48\x2e\x68\x2c\x51\xa5\x99\xb1\x04\x96\xbf\x81\x45\xbf\x63\x5e\x7e\xf9\xc8\x63\x81\xf1\x58\x6a\x66\xe1\x4d\x99\x1c\x47\x6b\x98\x0c\x6c\x39\xea\x6a\x44\xee\x80\x8a\x6f\x92\xbe\xd1\x78\x74\xc6\xd9\x4e\x56\x68\x14\xd1\x3f\x35\x40\x56\x48\xb8\x0c\x3b\x3c\x72\x63\x25\x58\x1e\x1a\xf3\xea\x65\xe4\x48\x3c\x51\xba\xbc\x7c\xe7\x1b\x3b\x71\x57\x6b\x61\xfe\xe8\xc9\x97\x75\xf0\x69\x1b\x54\xfc\xae\x0d\x62\xcf\xab\xcb\x7b\xb6\xdb\x2c\x57\xdf\xd8\xe7\xed\x3a\x08\xa6\x0e\x66\xf6\xe8\xd1\xe9\x5c\x2f\xaf\x62\x27\xba\xa5\x5d\xdf\xc2\x42\xec\x6c\xf1\xe9\xe8\x2c\x19\x92\x05\x60\xd3\x12\x5e\x62\x9b\x52\x83\xab\x5a\x88\xb7\x67\x55\x15\x38\x28\x3d\xfd\x40\xfe\x46\xa3\x43\x9e\x09\x8a\xb9\xc9\xb0\x59\xa9\xb9\xdc\x6e\xd7\xa7\xe1\xd6\x8d\xa8\xae\xf6\x65\x3d\x9b\x72\xbd\x21\xe0\x6a\x57\x47\x75\x4b\x0a\x50\xbf\x62\x57\x44\xb8\xb2\xd5\x79\x5d\xf6\xca\x6e\x7b\x52\x64\xb0\x44\x93\xf0\x51\x69\xb7\x5a\xfe\xdc\x0d\x16\x74\x22\x63\xb0\x96\x83\x1d\x5b\xa6\x2b\xa2\x06\xeb\x75\x91\x3c\x85\x6f\x46\x07\xdb\x8d\x5b\xbe\x0f\x5f\xef\xa9\xcd\x50\x92\xdd\x5d\x84\x5a\x74\xae\x64\xff\xf0\xdb\xd9\xd9\xd9\x58\xef\x85\xed\xb3\xe2\xaa\x90\xbd\x69\x6c\x5f\x0f\xa3\xdb\x0e\x97\x33\xda\x90\x9e\x2c\x1f\xdc\xdc\xe9\x54\x02\x09\x95\x20\x9b\x3f\x3d\xb1\x5b\x34\x89\x2c\x43\xef\x64\xe5\xed\xc3\x03\xc1\x3b\xcd\x66\x77\xcc\x0f\x8c\x8c\xbc\x0e\x58\x46\xa6\x1f\x1a\x9a\xfc\x10\xd3\x55\xe5\x6b\xd0\xfe\x06\x6a\xd0\x46\x0b\x33\xf6\xeb\x7b\xb0\x0e\xca\xfb\xc0\xfe\x67\xf7\xf7\x6d\x6f\x3b\xfe\x7a\x85\xab\xce\x41\x2d\x68\x1b\x7f\x87\xbf\x01\x00\x00\xff\xff\x04\xb9\x3f\x72\x79\x0a\x00\x00") +var _migrations65_remove_unused_indexesSql = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x94\x55\x4d\x73\x9b\x30\x10\xbd\xfb\x57\x68\x72\x89\x3d\x8d\x4f\xb9\x25\xd3\xcc\xb4\x35\x6d\x7d\x71\x5a\x7f\x4c\x73\xd3\x08\xb4\x36\x6a\x40\xcb\x48\x4b\x1a\xff\xfb\x0e\x06\x3b\xe2\x43\x60\x6e\x0c\x7a\xef\xed\xf2\x56\xfb\x98\xcf\xd9\xa7\x54\x1d\x8c\x20\x60\xbb\x8c\x69\x24\x23\xb4\x15\x11\x29\xd4\x93\xc9\x62\xfd\xfc\x8b\x2d\x57\x8b\xe0\x85\x2d\xbf\xb3\xe0\x65\xb9\xd9\x6e\x98\x88\x22\xcc\x35\x59\x1e\x63\x0a\x5c\x62\x2a\x94\x7e\x1c\x80\x2a\xbd\x4f\x44\xa1\xc9\x25\x58\x52\xfa\xf4\xec\x23\x59\x0b\xc4\xc3\x23\x57\xd6\xe6\x60\x3c\xa8\x28\x11\x2a\x15\xa1\x08\x13\xe0\xa1\x48\x84\x8e\xc0\x16\xa4\xf2\xbd\x26\xeb\xe1\xc5\x64\x24\x27\x95\x02\x4f\x10\x5f\xf3\xcc\x03\x53\x5a\xc2\x3b\x8f\x95\x25\x34\x47\x0e\xfb\x3d\x44\x64\x39\x6a\x4e\xc7\x0c\xae\xe2\x24\x20\x0f\x60\x4e\x9c\x28\x41\x0b\x92\x0b\x1a\x4b\x54\x69\x86\x86\xc0\xf0\x37\x30\xd6\xef\x98\x97\x5f\x3e\xf2\x58\xd8\x78\x2c\x35\x33\xf0\xa6\x30\xb7\xa3\x35\x30\x03\x53\x8e\xba\x1a\x91\x3b\xa0\xe2\x9b\xa4\x6f\x34\x1e\x9d\x71\xb6\x3b\xf7\x77\x74\x03\x64\x84\x84\xcb\xb0\xc3\x23\x47\x23\xc1\xf0\x10\xf1\xd5\xcb\xc8\x2d\xf1\x44\xe9\xf2\xf2\x9d\x6f\xec\xc4\x5d\xab\x05\xfe\xd3\x93\x6f\xeb\xe0\xcb\x36\xa8\xf8\x5d\x1b\xc4\x9e\x57\x97\xf7\x6c\xb7\x59\xae\x7e\xb0\xaf\xdb\x75\x10\x4c\x1d\xcc\xec\xd1\xa3\xd3\xb9\x5e\x5e\xc5\x4e\x74\x4b\xbb\xbe\x85\x85\xd8\xd9\xe2\xd3\xd1\x59\x32\x24\x03\xc0\xa6\x25\xbc\xc4\x36\xa5\x06\x57\xb5\x10\x6f\xcf\xaa\x2a\x70\x50\x7a\xfa\x81\xfc\x6b\x51\x87\x3c\x13\x14\x73\xcc\x6c\xb3\x52\x73\xb9\xdd\xae\x4f\xc3\xad\x1b\x51\x5d\xed\xcb\x7a\x36\xe5\x7a\x43\xc0\xd5\xae\x8e\xea\x96\x14\xa0\x7e\xc5\xae\x88\x70\x65\xab\xf3\xba\xec\x95\xdd\xf6\xa4\xc8\x60\x89\x26\xe1\xa3\xd2\x6e\xb5\xfc\xbd\x1b\x2c\xe8\x44\xc6\x60\x2d\x07\x3b\xb6\x4c\x57\x44\x0d\xd6\xeb\x22\x79\x0a\xdf\x8c\x0e\xb6\x1b\xb7\x7c\x1f\xbe\xde\x53\x9b\xa1\x24\xbb\xbb\x08\xb5\xe8\x5c\xc9\xfe\xe1\xb7\xb3\xb3\xb3\xb1\xde\x0b\xdb\x67\xc5\x55\x21\x7b\xd3\xd8\xbe\x1e\x46\xb7\x1d\x2e\x67\xb4\x21\x3d\x59\x3e\xb8\xb9\xd3\xa9\x04\x12\x2a\xb1\x6c\xfe\xf4\xc4\x6e\x2d\x26\xb2\x0c\xbd\x93\x95\xb7\x0f\x0f\x04\xef\x34\x9b\xdd\x31\x3f\x30\x42\x79\x1d\xb0\x8c\x4c\x3f\x34\xc4\xfc\x10\xd3\x55\xe5\x6b\xd0\xfe\x06\x6a\xd0\x46\x0b\x33\xf6\xe7\x67\xb0\x0e\xca\xfb\xc0\x3e\xb3\xfb\xfb\xb6\xb7\x1d\x7f\xbd\xc2\x55\xe7\xa0\x16\xb4\x8d\xbf\xc3\xff\x00\x00\x00\xff\xff\x2f\x94\xb5\xbb\x75\x0a\x00\x00") func migrations65_remove_unused_indexesSqlBytes() ([]byte, error) { return bindataRead( @@ -1371,7 +1371,7 @@ func migrations65_remove_unused_indexesSql() (*asset, error) { } info := bindataFileInfo{name: "migrations/65_remove_unused_indexes.sql", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x81, 0x62, 0xd3, 0xc9, 0x80, 0xb9, 0x37, 0x4b, 0xc3, 0x6, 0x87, 0xcb, 0x7b, 0xbc, 0xeb, 0x10, 0x4d, 0xc8, 0xf8, 0x61, 0xe5, 0x76, 0xae, 0xee, 0xd8, 0x51, 0x9d, 0x35, 0xc5, 0xe9, 0x74, 0xd2}} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xdd, 0xe7, 0xf8, 0x2d, 0x88, 0xc3, 0x68, 0x19, 0x88, 0x2d, 0x53, 0x15, 0x81, 0xfd, 0x55, 0xc3, 0x97, 0x87, 0xcc, 0x1, 0x3e, 0x67, 0x32, 0xc5, 0xff, 0xeb, 0x63, 0x5, 0x50, 0x4c, 0x73, 0x6a}} return a, nil } diff --git a/services/horizon/internal/db2/schema/migrations/65_remove_unused_indexes.sql b/services/horizon/internal/db2/schema/migrations/65_remove_unused_indexes.sql index a4328fda78..6efd42bef3 100644 --- a/services/horizon/internal/db2/schema/migrations/65_remove_unused_indexes.sql +++ b/services/horizon/internal/db2/schema/migrations/65_remove_unused_indexes.sql @@ -1,6 +1,5 @@ --- +migrate Up +-- +migrate Up notransaction --- unused indices DROP INDEX IF EXISTS accounts_home_domain; DROP INDEX IF EXISTS accounts_inflation_destination; DROP INDEX IF EXISTS asset_by_issuer;