This repository has been archived on 2020-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
quay/data/migrations/versions
Joseph Schorr f4a1646a8b Add an index on the logs_archived boolean on a RepositoryBuild
Addresses the slow query:

```
SELECT `candidates` . `id` FROM ( SELECT `t1` . `id` FROM `repositorybuild` AS `t1` WHERE ( ( ( `t1` . `phase` IN (...) ) OR ( `t1` . `started` < ? ) ) AND ( `t1` . `logs_archived` = ? ) ) LIMIT ? ) AS `candidates` ORDER BY `Rand` ( ) LIMIT ? OFFSET ?
```

While the cardinality on `logs_archived` will be low, it should also only be in the `false` state for a very small number of records, so it should make this query very, very fast.
2019-02-15 16:11:25 -05:00
..
0cf50323c78b_add_creation_date_to_user_table.py Add support for populating test data during migration testing 2018-06-18 14:14:32 -04:00
3e8cc74a1e7b_add_severity_and_media_type_to_global_.py Add support for populating test data during migration testing 2018-06-18 14:14:32 -04:00
5b7503aada1b_cleanup_old_robots.py Add support for populating test data during migration testing 2018-06-18 14:14:32 -04:00
5cbbfc95bac7_remove_oci_tables_not_used_by_cnr_the_.py Phase 1 of migrating APPR-specific tables to tables with the Appr prefix 2018-07-20 13:19:01 -04:00
5d463ea1e8a8_backfill_new_appr_tables.py Phase 2 of Appr migration 2018-07-21 15:25:04 -04:00
6c21e2cfb8b6_change_logentry_to_use_a_biginteger_as_.py Change id column in LogEntry to a BigInt and migrate back to using that table 2018-07-30 12:42:56 -04:00
6c7014e84a5e_add_user_prompt_support.py Add support for populating test data during migration testing 2018-06-18 14:14:32 -04:00
6ec8726c0ace_add_logentry3_table.py Remove the foreign key constraint from the kind field on the logentry3 table 2019-01-04 13:35:14 -05:00
7a525c68eb13_add_oci_app_models.py Phase 3 of Appr migration 2018-07-21 15:43:00 -04:00
10f45ee2310b_add_tag_tagkind_and_manifestchild_tables.py Switch Tag name field back to ASCII 2018-11-02 14:35:39 -04:00
17aff2e1354e_add_automatic_disable_of_build_triggers.py Add support for populating test data during migration testing 2018-06-18 14:14:32 -04:00
45fd8b9869d4_add_notification_type.py Add support for populating test data during migration testing 2018-06-18 14:14:32 -04:00
53e2ac668296_remove_reference_to_subdir.py Add support for populating test data during migration testing 2018-06-18 14:14:32 -04:00
61cadbacb9fc_add_ability_for_build_triggers_to_be_.py Add support for populating test data during migration testing 2018-06-18 14:14:32 -04:00
67f0abd172ae_add_tagtorepositorytag_table.py Have all tag code add, modify and delete both old and new style tags 2018-11-01 17:59:10 -04:00
87fbbc224f10_add_disabled_datetime_to_trigger.py Add support for populating test data during migration testing 2018-06-18 14:14:32 -04:00
152bb29a1bb3_add_maximum_build_queue_count_setting_.py Add support for populating test data during migration testing 2018-06-18 14:14:32 -04:00
152edccba18c_make_blodupload_byte_count_not_nullable.py Add support for populating test data during migration testing 2018-06-18 14:14:32 -04:00
224ce4c72c2f_add_last_accessed_field_to_user_table.py Add support for populating test data during migration testing 2018-06-18 14:14:32 -04:00
654e6df88b71_change_manifest_bytes_to_a_utf8_text_.py Migrate the manifest bytes column to UTF8 2018-08-15 11:41:26 -04:00
9093adccc784_add_v2_2_data_models_for_manifest_.py Fix the V22 phase 1 migrations to use new tables for mapping rather than editing existing tables 2018-08-06 16:58:27 -04:00
13411de1c0ff_remove_unique_from_tagmanifesttomanifest.py Fix TagManifests with shared digests under the same repository. 2018-08-20 11:32:59 -04:00
54492a68a3cf_add_namespacegeorestriction_table.py Add ability for specific geographic regions to be blocked from pulling images within a namespace 2018-12-06 17:14:45 -05:00
94836b099894_create_new_notification_type.py Add support for populating test data during migration testing 2018-06-18 14:14:32 -04:00
481623ba00ba_add_index_on_logs_archived_on_.py Add an index on the logs_archived boolean on a RepositoryBuild 2019-02-15 16:11:25 -05:00
610320e9dacf_add_new_appr_specific_tables.py Phase 1 of migrating APPR-specific tables to tables with the Appr prefix 2018-07-20 13:19:01 -04:00
1783530bee68_add_logentry2_table_quay_io_only.py Add support for populating test data during migration testing 2018-06-18 14:14:32 -04:00
7367229b38d9_add_support_for_app_specific_tokens.py Add support for populating test data during migration testing 2018-06-18 14:14:32 -04:00
a6c463dfb9fe_back_fill_build_expand_config.py Add support for populating test data during migration testing 2018-06-18 14:14:32 -04:00
b4c2d45bc132_add_deleted_namespace_table.py Add support for populating test data during migration testing 2018-06-18 14:14:32 -04:00
b4df55dea4b3_add_repository_kind.py Add support for populating test data during migration testing 2018-06-18 14:14:32 -04:00
b8ae68ad3e52_change_blobupload_fields_to_bigintegers_.py Add support for populating test data during migration testing 2018-06-18 14:14:32 -04:00
b547bc139ad8_add_robotaccountmetadata_table.py Add support for populating test data during migration testing 2018-06-18 14:14:32 -04:00
b9045731c4de_add_lifetime_indexes_to_tag_tables.py Add some missing indexes that should make queries significantly faster 2019-02-14 17:23:30 -05:00
be8d1c402ce0_add_teamsync_table.py Add support for populating test data during migration testing 2018-06-18 14:14:32 -04:00
c00a1f15968b_add_schema2_media_types.py Add schema2 media types 2018-11-13 09:24:04 +02:00
c3d4b7ebcdf7_backfill_repositorysearchscore_table.py Add support for populating test data during migration testing 2018-06-18 14:14:32 -04:00
c91c564aad34_drop_checksum_on_imagestorage.py Add support for populating test data during migration testing 2018-06-18 14:14:32 -04:00
c156deb8845d_reset_our_migrations_with_a_required_.py Add support for populating test data during migration testing 2018-06-18 14:14:32 -04:00
cbc8177760d9_add_user_location_field.py Add support for populating test data during migration testing 2018-06-18 14:14:32 -04:00
d17c695859ea_delete_old_appr_tables.py Phase 3 of Appr migration 2018-07-21 15:43:00 -04:00
d42c175b439a_backfill_state_id_and_make_it_unique.py Add support for populating test data during migration testing 2018-06-18 14:14:32 -04:00
d8989249f8f6_add_change_tag_expiration_log_type.py Add support for populating test data during migration testing 2018-06-18 14:14:32 -04:00
dc4af11a5f90_add_notification_number_of_failures_.py Add support for populating test data during migration testing 2018-06-18 14:14:32 -04:00
e184af42242d_add_missing_index_on_uuid_fields.py Add some missing indexes that should make queries significantly faster 2019-02-14 17:23:30 -05:00
e2894a3a3c19_add_full_text_search_indexing_for_repo_.py Add support for populating test data during migration testing 2018-06-18 14:14:32 -04:00
eafdeadcebc7_remove_blob_index_from_manifestblob_.py Migrate the manifest bytes column to UTF8 2018-08-15 11:41:26 -04:00
ed01e313d3cb_add_trust_enabled_to_repository.py Add support for populating test data during migration testing 2018-06-18 14:14:32 -04:00
f5167870dd66_update_queue_item_table_indices.py Add support for populating test data during migration testing 2018-06-18 14:14:32 -04:00
f30984525c86_add_repositorysearchscore_table.py Add support for populating test data during migration testing 2018-06-18 14:14:32 -04:00
faf752bd2e0a_add_user_metadata_fields.py Add support for populating test data during migration testing 2018-06-18 14:14:32 -04:00
fc47c1ec019f_add_state_id_field_to_queueitem.py Add support for populating test data during migration testing 2018-06-18 14:14:32 -04:00