mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2024-09-20 16:08:51 +03:00
Dl wallet store index fix (#13316)
* index fixes Signed-off-by: Thomas Hein <thomashein@gmx.at> * restructure Signed-off-by: Thomas Hein <thomashein@gmx.at> * black Signed-off-by: Thomas Hein <thomashein@gmx.at> * fix typo Signed-off-by: Thomas Hein <thomashein@gmx.at> Signed-off-by: Thomas Hein <thomashein@gmx.at>
This commit is contained in:
parent
fda2163b6b
commit
f836034649
@ -80,16 +80,21 @@ class DataLayerStore:
|
||||
)
|
||||
)
|
||||
|
||||
await conn.execute("CREATE INDEX IF NOT EXISTS coin_id on singleton_records(coin_id)")
|
||||
await conn.execute("CREATE INDEX IF NOT EXISTS launcher_id on singleton_records(launcher_id)")
|
||||
await conn.execute("CREATE INDEX IF NOT EXISTS root on singleton_records(root)")
|
||||
await conn.execute("CREATE INDEX IF NOT EXISTS inner_puzzle_hash on singleton_records(inner_puzzle_hash)")
|
||||
await conn.execute("CREATE INDEX IF NOT EXISTS confirmed_at_height on singleton_records(root)")
|
||||
await conn.execute("CREATE INDEX IF NOT EXISTS generation on singleton_records(generation)")
|
||||
await conn.execute(
|
||||
"CREATE INDEX IF NOT EXISTS singleton_records_launcher_id_index ON singleton_records(launcher_id)"
|
||||
)
|
||||
await conn.execute("CREATE INDEX IF NOT EXISTS singleton_records_root_index ON singleton_records(root)")
|
||||
await conn.execute(
|
||||
"CREATE INDEX IF NOT EXISTS singleton_records_confirmed_at_height_index "
|
||||
"ON singleton_records(confirmed_at_height)"
|
||||
)
|
||||
await conn.execute(
|
||||
"CREATE INDEX IF NOT EXISTS singleton_records_generation_index ON singleton_records(generation)"
|
||||
)
|
||||
|
||||
await conn.execute(("CREATE TABLE IF NOT EXISTS launchers(id blob PRIMARY KEY, coin blob)"))
|
||||
await conn.execute("CREATE TABLE IF NOT EXISTS launchers(id blob PRIMARY KEY, coin blob)")
|
||||
|
||||
await conn.execute("CREATE INDEX IF NOT EXISTS id on launchers(id)")
|
||||
await conn.execute("CREATE INDEX IF NOT EXISTS mirrors_launcher_id_index ON mirrors(launcher_id)")
|
||||
|
||||
return self
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user