Skip to content

Commit 4ce3be6

Browse files
committed
Change delete older snapshot versions to delete all unknown versions
This task should be executed when the new code is fully deployed to all machines, and the other snapshot versions are no longer required.
1 parent 3c9750b commit 4ce3be6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/sequent/rake/migration_tasks.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,8 +391,8 @@ def register_tasks!
391391
desc <<~EOS
392392
Delete all aggregate snapshots with a lower snapshot version than currently supported.
393393
EOS
394-
task delete_older_versions: :connect do
395-
Sequent.configuration.event_store.delete_lower_snapshot_versions
394+
task delete_unknown_snapshot_versions: :connect do
395+
Sequent.configuration.event_store.delete_unknown_snapshot_versions
396396
Sequent.logger.info 'Deleted all lower snapshot versions from the event store'
397397
end
398398
end

0 commit comments

Comments
 (0)