def get_migrations()

in jobs/mongodb_migration/src/mongodb_migration/collector.py [0:0]


    def get_migrations(self) -> list[Migration]:
        return [
            MigrationExample(version="20221110230400", description="example"),
            MigrationAddForceToJob(
                version="20221116133500", description="add 'force' field to jobs in queue database"
            ),
            MigrationMoveToGenericCachedResponse(
                version="20221117223000",
                description="replace SplitsResponse and FirstRowsResponse with a generic CachedResponse",
            ),
            MigrationAddPriorityToJob(
                version="20230126164900",
                description="add 'priority' field to jobs in queue database",
            ),
            CacheRenamingMigration(
                cache_kind="/split-names",
                new_cache_kind="/split-names-from-streaming",
                version="20230216112500",
            ),
            QueueRenamingMigration(
                job_type="/split-names",
                new_job_type="/split-names-from-streaming",
                version="20230216141000",
            ),
            MigrationAddProgressToCacheResponse(
                version="20230309123100",
                description="add the 'progress' field with the default value (1.0) to the cached results",
            ),
            MigrationAddJobRunnerVersionToCacheResponse(
                version="20230309141600", description="add 'job_runner_version' field based on 'worker_version' value"
            ),
            MigrationRemoveFieldFromCache(
                version="20230313164200",
                description="remove 'worker_version' field from cache",
                field_name="worker_version",
            ),
            CacheRenamingMigration(
                cache_kind="/first-rows",
                new_cache_kind="split-first-rows-from-streaming",
                version="20230320163700",
            ),
            QueueRenamingMigration(
                job_type="/first-rows",
                new_job_type="split-first-rows-from-streaming",
                version="20230320165700",
            ),
            CacheRenamingMigration(
                cache_kind="/dataset-info",
                new_cache_kind="dataset-info",
                version="20230323155000",
            ),
            QueueRenamingMigration(
                job_type="/dataset-info",
                new_job_type="dataset-info",
                version="20230323160000",
            ),
            QueueDeletionMigration(
                job_type="/splits",
                version="20230407091400",
            ),
            CacheDeletionMigration(
                cache_kind="/splits",
                version="20230407091500",
            ),
            QueueDeletionMigration(
                job_type="/parquet-and-dataset-info",
                version="20230424173000",
            ),
            CacheDeletionMigration(
                cache_kind="/parquet-and-dataset-info",
                version="20230424174000",
            ),
            MetricsDeletionMigration(
                job_type="/parquet-and-dataset-info",
                cache_kind="/parquet-and-dataset-info",
                version="20230427121500",
            ),
            MigrationQueueDeleteTTLIndex(
                version="20230428145000",
                description="delete the TTL index on the 'finished_at' field in the queue database",
                field_name="finished_at",
            ),
            CacheDeletionMigration(
                cache_kind="dataset-split-names-from-streaming",
                version="20230428175100",
            ),
            QueueDeletionMigration(
                job_type="dataset-split-names-from-streaming",
                version="20230428181800",
            ),
            MetricsDeletionMigration(
                job_type="dataset-split-names-from-streaming",
                cache_kind="dataset-split-names-from-streaming",
                version="20230428193100",
            ),
            CacheDeletionMigration(
                cache_kind="dataset-split-names-from-dataset-info",
                version="20230504185100",
            ),
            QueueDeletionMigration(
                job_type="dataset-split-names-from-dataset-info",
                version="20230504192200",
            ),
            MetricsDeletionMigration(
                job_type="dataset-split-names-from-dataset-info",
                cache_kind="dataset-split-names-from-dataset-info",
                version="20230504194600",
            ),
            MigrationRemoveFieldFromJob(
                field_name="force", version="20230511100600", description="remove 'force' field from queue"
            ),
            MigrationQueueDeleteIndexesWithForce(
                version="20230511100700", description="remove indexes with field 'force'"
            ),
            MigrationDeleteJobsByStatus(
                status_list=["skipped"],
                version="20230511110700",
                description="delete jobs with skipped status",
            ),
            MigrationQueueAddRevisionToJob(
                version="20230516101500", description="add 'revision' field to jobs in queue database"
            ),
            MigrationQueueDeleteIndexWithoutRevision(
                version="20230516101600", description="remove index without revision"
            ),
            CacheRenamingMigration(
                cache_kind="/split-names-from-streaming",
                new_cache_kind="config-split-names-from-streaming",
                version="20230516164500",
            ),
            QueueRenamingMigration(
                job_type="/split-names-from-streaming",
                new_job_type="config-split-names-from-streaming",
                version="20230516164700",
            ),
            MetricsDeletionMigration(
                job_type="/split-names-from-streaming",
                cache_kind="/split-names-from-streaming",
                version="20230522094400",
            ),
            MigrationQueueDeleteTTLIndex(
                version="20230523171700",
                description=(
                    "delete the TTL index on the 'finished_at' field in the queue database to update its TTL value"
                ),
                field_name="finished_at",
            ),
            CacheRenamingMigration(
                cache_kind="/split-names-from-dataset-info",
                new_cache_kind="config-split-names-from-info",
                version="20230524095900",
            ),
            QueueRenamingMigration(
                job_type="/split-names-from-dataset-info",
                new_job_type="config-split-names-from-info",
                version="20230524095901",
            ),
            MetricsDeletionMigration(
                job_type="/split-names-from-dataset-info",
                cache_kind="/split-names-from-dataset-info",
                version="20230524095902",
            ),
            CacheRenamingMigration(
                cache_kind="/config-names", new_cache_kind="dataset-config-names", version="20230524192200"
            ),
            QueueRenamingMigration(
                job_type="/config-names",
                new_job_type="dataset-config-names",
                version="20230524192300",
            ),
            MetricsDeletionMigration(job_type="/config-names", cache_kind="/config-names", version="20230524192400"),
            MigrationQueueDeleteTTLIndex(
                version="20230607154800",
                description=(
                    "delete the TTL index on the 'finished_at' field in the queue database to update its TTL condition"
                ),
                field_name="finished_at",
            ),
            MigrationQueueDeleteTTLIndex(
                version="202306201100",
                description=(
                    "delete the TTL index on the 'finished_at' field in the queue database to update its TTL condition"
                ),
                field_name="finished_at",
            ),
            MigrationAddOwnerToQueueLock(
                version="20230622131800", description="add 'owner' field copying the job_id value"
            ),
            MigrationAddPartialToCacheResponse(
                version="20230703110100", description="add 'partial' field to config-parquet-and-info"
            ),
            MigrationQueueAddDifficultyToJob(version="20230705160600", description="add 'difficulty' field to jobs"),
            MigrationDropCollection(
                version="20230811063600",
                description="drop cache metrics collection",
                alias="metrics",
                collection_name=CACHE_METRICS_COLLECTION,
            ),
            MigrationDropCollection(
                version="20230814121400",
                description="drop queue metrics collection",
                alias="metrics",
                collection_name=TYPE_STATUS_AND_DATASET_STATUS_JOB_COUNTS_COLLECTION,
            ),
            MigrationAddHasFTSToSplitDuckdbIndexCacheResponse(
                version="20230926095900",
                description="add 'has_fts' field for 'split-duckdb-index' cache records",
            ),
            MigrationAddPartialToSplitDuckdbIndexCacheResponse(
                version="20231106193200",
                description="add 'partial', 'num_rows' and 'num_bytes' fields for 'split-duckdb-index' cache records",
            ),
            MigrationDeleteJobsByStatus(
                status_list=["success", "error", "cancelled"],
                version="20231201074900",
                description="delete jobs with success, error and cancelled status",
            ),
            MigrationQueueDeleteTTLIndex(
                version="20231201112000",
                description="delete the TTL index on the 'finished_at' field in the queue database",
                field_name="finished_at",
            ),
            MigrationRemoveFieldFromJob(
                field_name="finished_at", version="20231201112600", description="remove 'finished_at' field from queue"
            ),
            MigrationAddRetriesToCacheResponse(
                version="20240104085000", description="add 'retries' field to cache records"
            ),
            MigrationRemoveFieldFromCache(
                version="20240109155600", description="remove 'retries' field from cache", field_name="retries"
            ),
            MigrationAddFailedRunsToCacheResponse(
                version="20240109160700", description="add 'failed_runs' filed to cache records"
            ),
            MigrationAddTagsToHubCacheCacheResponse(
                version="20240206153000",
                description="add the 'tags' fields to dataset-hub-cache",
            ),
            MigrationAddPartialToSplitDescriptiveStatisticsCacheResponse(
                version="20240216111500",
                description="add 'partial' field to split-descriptive-statistics cache records",
            ),
            MigrationMergeConfigSplitNamesResponses(
                version="20240221103200",
                description="merge 'config-split-names-from-streaming' and 'config-split-names-from-info' responses to 'config-split-names'",
            ),
            MigrationMergeSplitFirstRowsResponses(
                version="20240221160700",
                description="merge 'split-first-rows-from-streaming' and 'split-first-rows-from-parquet' responses to 'split-first-rows'",
            ),
            MigrationSetUpdatedAtToOldestStep(
                version="20240221160800",
                description="set 'updated_at' of the root step to all the cache entries for each dataset",
            ),
            CacheDeletionMigration(
                version="20240223090800",
                cache_kind="split-duckdb-index",
            ),
            CacheRenamingMigration(
                version="20240223090900",
                cache_kind="split-duckdb-index-010",
                new_cache_kind="split-duckdb-index",
            ),
            QueueRenamingMigration(
                version="20240223091000",
                job_type="split-duckdb-index-010",
                new_job_type="split-duckdb-index",
            ),
            QueueRenamingMigration(
                version="20240307191001",
                job_type="dataset-loading-tags",
                new_job_type="dataset-compatible-libraries",
            ),
            CacheRenamingMigration(
                cache_kind="dataset-loading-tags",
                new_cache_kind="dataset-compatible-libraries",
                version="20240307191000",
            ),
            MigrationAddEstimatedDatasetInfoToParquetAndInfoCacheResponse(
                version="20240619124500",
                description="add 'estimated_dataset_info' field to config-parquet-and-info cache records",
            ),
            MigrationDeleteIndex(
                version="20240624120300",
                description="delete the TTL index in the pastJobs collection",
                database=QUEUE_MONGOENGINE_ALIAS,
                collection=QUEUE_COLLECTION_PAST_JOBS,
                index_name="PAST_JOB_EXPIRE_AFTER_SECONDS",
            ),
            MigrationDeleteIndex(
                version="20240624120301",
                description="delete the TTL index in the blockedDatasets collection",
                database=QUEUE_MONGOENGINE_ALIAS,
                collection=QUEUE_COLLECTION_DATASET_BLOCKAGES,
                index_name="DATASET_BLOCKAGE_EXPIRE_AFTER_SECONDS",
            ),
            MigrationAddEstimatedNumRowsToSizeCacheResponse(
                version="20240624144000",
                description="add 'estimated_num_rows' field to config-size and dataset-size cache records",
            ),
            MigrationAddStemmerToSplitDuckdbIndexCacheResponse(
                version="20240626095000",
                description="add 'stemmer' field for 'split-duckdb-index' cache records",
            ),
            MigrationRemoveHasFTSFromSplitDuckdbIndexCacheResponse(
                version="20240626151600",
                description="remove 'has_fts' field from 'split-duckdb-index' cache records",
            ),
            MigrationAddDurationToCacheResponse(
                version="20240703160300", description="add 'duration' field to cache records"
            ),
            MigrationAddDatasetStatusToQueueMetrics(
                version="20240731143600", description="add 'dataset_status' field to the jobs metrics"
            ),
        ]