
---
apiVersion: dbaoperator.app-sre.redhat.com/v1alpha1
kind: DatabaseMigration
metadata:
  name: 7a525c68eb13
spec:
  migrationContainerSpec:
    command:
    - /quay-registry/quay-entrypoint.sh
    - migrate
    - 7a525c68eb13
    image: quay.io/quay/quay
    name: 7a525c68eb13
  previous: e2894a3a3c19
  schemaHints:
  - columns:
    - name: id
      nullable: false
    - name: name
      nullable: false
    operation: createTable
    table: tagkind
  - columns: []
    indexName: tagkind_name
    indexType: unique
    operation: createIndex
    table: tagkind
  - columns:
    - name: id
      nullable: false
    - name: name
      nullable: false
    operation: createTable
    table: blobplacementlocation
  - columns: []
    indexName: blobplacementlocation_name
    indexType: unique
    operation: createIndex
    table: blobplacementlocation
  - columns:
    - name: id
      nullable: false
    - name: digest
      nullable: false
    - name: media_type_id
      nullable: false
    - name: size
      nullable: false
    - name: uncompressed_size
      nullable: true
    operation: createTable
    table: blob
  - columns: []
    indexName: blob_digest
    indexType: unique
    operation: createIndex
    table: blob
  - columns: []
    indexName: blob_media_type_id
    indexType: index
    operation: createIndex
    table: blob
  - columns:
    - name: id
      nullable: false
    - name: user_id
      nullable: false
    - name: location_id
      nullable: false
    operation: createTable
    table: blobplacementlocationpreference
  - columns: []
    indexName: blobplacementlocationpreference_location_id
    indexType: index
    operation: createIndex
    table: blobplacementlocationpreference
  - columns: []
    indexName: blobplacementlocationpreference_user_id
    indexType: index
    operation: createIndex
    table: blobplacementlocationpreference
  - columns:
    - name: id
      nullable: false
    - name: digest
      nullable: false
    - name: media_type_id
      nullable: false
    - name: manifest_json
      nullable: false
    operation: createTable
    table: manifest
  - columns: []
    indexName: manifest_digest
    indexType: unique
    operation: createIndex
    table: manifest
  - columns: []
    indexName: manifest_media_type_id
    indexType: index
    operation: createIndex
    table: manifest
  - columns:
    - name: id
      nullable: false
    - name: digest
      nullable: false
    - name: manifest_list_json
      nullable: false
    - name: schema_version
      nullable: false
    - name: media_type_id
      nullable: false
    operation: createTable
    table: manifestlist
  - columns: []
    indexName: manifestlist_digest
    indexType: unique
    operation: createIndex
    table: manifestlist
  - columns: []
    indexName: manifestlist_media_type_id
    indexType: index
    operation: createIndex
    table: manifestlist
  - columns:
    - name: id
      nullable: false
    - name: blob_id
      nullable: false
    - name: pieces
      nullable: false
    - name: piece_length
      nullable: false
    operation: createTable
    table: bittorrentpieces
  - columns: []
    indexName: bittorrentpieces_blob_id
    indexType: index
    operation: createIndex
    table: bittorrentpieces
  - columns: []
    indexName: bittorrentpieces_blob_id_piece_length
    indexType: unique
    operation: createIndex
    table: bittorrentpieces
  - columns:
    - name: id
      nullable: false
    - name: blob_id
      nullable: false
    - name: location_id
      nullable: false
    operation: createTable
    table: blobplacement
  - columns: []
    indexName: blobplacement_blob_id
    indexType: index
    operation: createIndex
    table: blobplacement
  - columns: []
    indexName: blobplacement_blob_id_location_id
    indexType: unique
    operation: createIndex
    table: blobplacement
  - columns: []
    indexName: blobplacement_location_id
    indexType: index
    operation: createIndex
    table: blobplacement
  - columns:
    - name: id
      nullable: false
    - name: uuid
      nullable: false
    - name: created
      nullable: false
    - name: repository_id
      nullable: false
    - name: location_id
      nullable: false
    - name: byte_count
      nullable: false
    - name: uncompressed_byte_count
      nullable: true
    - name: chunk_count
      nullable: false
    - name: storage_metadata
      nullable: true
    - name: sha_state
      nullable: true
    - name: piece_sha_state
      nullable: true
    - name: piece_hashes
      nullable: true
    operation: createTable
    table: blobuploading
  - columns: []
    indexName: blobuploading_created
    indexType: index
    operation: createIndex
    table: blobuploading
  - columns: []
    indexName: blobuploading_location_id
    indexType: index
    operation: createIndex
    table: blobuploading
  - columns: []
    indexName: blobuploading_repository_id
    indexType: index
    operation: createIndex
    table: blobuploading
  - columns: []
    indexName: blobuploading_repository_id_uuid
    indexType: unique
    operation: createIndex
    table: blobuploading
  - columns: []
    indexName: blobuploading_uuid
    indexType: unique
    operation: createIndex
    table: blobuploading
  - columns:
    - name: id
      nullable: false
    - name: uuid
      nullable: false
    - name: source_manifest_id
      nullable: false
    - name: derived_manifest_json
      nullable: false
    - name: media_type_id
      nullable: false
    - name: blob_id
      nullable: false
    - name: uniqueness_hash
      nullable: false
    - name: signature_blob_id
      nullable: true
    operation: createTable
    table: derivedimage
  - columns: []
    indexName: derivedimage_blob_id
    indexType: index
    operation: createIndex
    table: derivedimage
  - columns: []
    indexName: derivedimage_media_type_id
    indexType: index
    operation: createIndex
    table: derivedimage
  - columns: []
    indexName: derivedimage_signature_blob_id
    indexType: index
    operation: createIndex
    table: derivedimage
  - columns: []
    indexName: derivedimage_source_manifest_id
    indexType: index
    operation: createIndex
    table: derivedimage
  - columns: []
    indexName: derivedimage_source_manifest_id_blob_id
    indexType: unique
    operation: createIndex
    table: derivedimage
  - columns: []
    indexName: derivedimage_source_manifest_id_media_type_id_uniqueness_hash
    indexType: unique
    operation: createIndex
    table: derivedimage
  - columns: []
    indexName: derivedimage_uniqueness_hash
    indexType: unique
    operation: createIndex
    table: derivedimage
  - columns: []
    indexName: derivedimage_uuid
    indexType: unique
    operation: createIndex
    table: derivedimage
  - columns:
    - name: id
      nullable: false
    - name: manifest_id
      nullable: false
    - name: blob_id
      nullable: false
    operation: createTable
    table: manifestblob
  - columns: []
    indexName: manifestblob_blob_id
    indexType: index
    operation: createIndex
    table: manifestblob
  - columns: []
    indexName: manifestblob_manifest_id
    indexType: index
    operation: createIndex
    table: manifestblob
  - columns: []
    indexName: manifestblob_manifest_id_blob_id
    indexType: unique
    operation: createIndex
    table: manifestblob
  - columns:
    - name: id
      nullable: false
    - name: repository_id
      nullable: false
    - name: annotated_id
      nullable: false
    - name: label_id
      nullable: false
    operation: createTable
    table: manifestlabel
  - columns: []
    indexName: manifestlabel_annotated_id
    indexType: index
    operation: createIndex
    table: manifestlabel
  - columns: []
    indexName: manifestlabel_label_id
    indexType: index
    operation: createIndex
    table: manifestlabel
  - columns: []
    indexName: manifestlabel_repository_id
    indexType: index
    operation: createIndex
    table: manifestlabel
  - columns: []
    indexName: manifestlabel_repository_id_annotated_id_label_id
    indexType: unique
    operation: createIndex
    table: manifestlabel
  - columns:
    - name: id
      nullable: false
    - name: blob_id
      nullable: false
    - name: manifest_id
      nullable: false
    - name: manifest_index
      nullable: false
    - name: metadata_json
      nullable: false
    operation: createTable
    table: manifestlayer
  - columns: []
    indexName: manifestlayer_blob_id
    indexType: index
    operation: createIndex
    table: manifestlayer
  - columns: []
    indexName: manifestlayer_manifest_id
    indexType: index
    operation: createIndex
    table: manifestlayer
  - columns: []
    indexName: manifestlayer_manifest_id_manifest_index
    indexType: unique
    operation: createIndex
    table: manifestlayer
  - columns: []
    indexName: manifestlayer_manifest_index
    indexType: index
    operation: createIndex
    table: manifestlayer
  - columns:
    - name: id
      nullable: false
    - name: manifest_list_id
      nullable: false
    - name: manifest_id
      nullable: false
    - name: operating_system
      nullable: true
    - name: architecture
      nullable: true
    - name: platform_json
      nullable: true
    - name: media_type_id
      nullable: false
    operation: createTable
    table: manifestlistmanifest
  - columns: []
    indexName: manifestlistmanifest_manifest_id
    indexType: index
    operation: createIndex
    table: manifestlistmanifest
  - columns: []
    indexName: manifestlistmanifest_manifest_list_id
    indexType: index
    operation: createIndex
    table: manifestlistmanifest
  - columns: []
    indexName: manifestlistmanifest_manifest_listid_os_arch_mtid
    indexType: index
    operation: createIndex
    table: manifestlistmanifest
  - columns: []
    indexName: manifestlistmanifest_manifest_listid_mtid
    indexType: index
    operation: createIndex
    table: manifestlistmanifest
  - columns: []
    indexName: manifestlistmanifest_media_type_id
    indexType: index
    operation: createIndex
    table: manifestlistmanifest
  - columns:
    - name: id
      nullable: false
    - name: name
      nullable: false
    - name: repository_id
      nullable: false
    - name: manifest_list_id
      nullable: true
    - name: lifetime_start
      nullable: false
    - name: lifetime_end
      nullable: true
    - name: hidden
      nullable: false
    - name: reverted
      nullable: false
    - name: protected
      nullable: false
    - name: tag_kind_id
      nullable: false
    - name: linked_tag_id
      nullable: true
    operation: createTable
    table: tag
  - columns: []
    indexName: tag_lifetime_end
    indexType: index
    operation: createIndex
    table: tag
  - columns: []
    indexName: tag_linked_tag_id
    indexType: index
    operation: createIndex
    table: tag
  - columns: []
    indexName: tag_manifest_list_id
    indexType: index
    operation: createIndex
    table: tag
  - columns: []
    indexName: tag_repository_id
    indexType: index
    operation: createIndex
    table: tag
  - columns: []
    indexName: tag_repository_id_name_hidden
    indexType: index
    operation: createIndex
    table: tag
  - columns: []
    indexName: tag_repository_id_name_lifetime_end
    indexType: unique
    operation: createIndex
    table: tag
  - columns: []
    indexName: tag_repository_id_name
    indexType: index
    operation: createIndex
    table: tag
  - columns: []
    indexName: tag_tag_kind_id
    indexType: index
    operation: createIndex
    table: tag
  - columns:
    - name: id
      nullable: false
    - name: manifest_layer_id
      nullable: false
    - name: image_id
      nullable: false
    - name: checksum
      nullable: false
    - name: compat_json
      nullable: false
    operation: createTable
    table: manifestlayerdockerv1
  - columns: []
    indexName: manifestlayerdockerv1_image_id
    indexType: index
    operation: createIndex
    table: manifestlayerdockerv1
  - columns: []
    indexName: manifestlayerdockerv1_manifest_layer_id
    indexType: index
    operation: createIndex
    table: manifestlayerdockerv1
  - columns:
    - name: id
      nullable: false
    - name: layer_id
      nullable: false
    - name: scannable
      nullable: false
    - name: scanned_by
      nullable: false
    operation: createTable
    table: manifestlayerscan
  - columns: []
    indexName: manifestlayerscan_layer_id
    indexType: unique
    operation: createIndex
    table: manifestlayerscan
