holaplex / indexer

Index Solana data using a Geyser plugin (downstream service cluster)
https://holaplex.com
GNU Affero General Public License v3.0
167 stars 39 forks source link

#630: only do collection stats migrations if needed #642

Closed austinmilt closed 2 years ago

austinmilt commented 2 years ago

This adds a condition to only do the collection_stats migrations if it hasnt been run before (by checking that there are >0 rows in the table). This way we can run the backfill manually before deploying prod to prevent this potentially long-running migration