mirror of
https://github.com/opengram-server/opengram.git
synced 2026-07-23 22:16:10 +03:00
Initial commit
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
// Script to delete old StarsSnapshot from MongoDB
|
||||
// Run this in MongoDB shell or via mongosh
|
||||
|
||||
use MyTelegram;
|
||||
|
||||
// Delete all StarsSnapshots with old version
|
||||
db['eventflow.snapshots'].deleteMany({
|
||||
'Metadata.AggregateId': { $regex: '^stars-' }
|
||||
});
|
||||
|
||||
print('Old StarsSnapshots deleted');
|
||||
Reference in New Issue
Block a user