mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2025-01-06 04:07:16 +03:00
Stop creating unecessary index in notification store (#14042)
* Stop creating unecessary index in notification store * add comment
This commit is contained in:
parent
3ee128cf47
commit
b39ec76d9f
@ -44,7 +44,9 @@ class NotificationStore:
|
||||
"CREATE TABLE IF NOT EXISTS notifications(" "coin_id blob PRIMARY KEY," "msg blob," "amount blob" ")"
|
||||
)
|
||||
|
||||
await conn.execute("CREATE INDEX IF NOT EXISTS coin_id_index on notifications(coin_id)")
|
||||
# This used to be an accidentally created redundant index on coin_id which is already a primary key
|
||||
# We can remove this at some point in the future when it's unlikely this index still exists
|
||||
await conn.execute("DROP INDEX IF EXISTS coin_id_index")
|
||||
|
||||
return self
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user