
---
apiVersion: dbaoperator.app-sre.redhat.com/v1alpha1
kind: DatabaseMigration
metadata:
  name: c13c8052f7a6
spec:
  migrationContainerSpec:
    command:
    - /quay-registry/quay-entrypoint.sh
    - migrate
    - c13c8052f7a6
    image: quay.io/quay/quay
    name: c13c8052f7a6
  previous: 5248ddf35167
  schemaHints:
  - columns:
    - name: id
      nullable: false
    - name: robot_account_id
      nullable: false
    - name: token
      nullable: false
    - name: fully_migrated
      nullable: false
    operation: createTable
    table: robotaccounttoken
  - columns: []
    indexName: robotaccounttoken_robot_account_id
    indexType: unique
    operation: createIndex
    table: robotaccounttoken
  - columns:
    - name: token_code
      nullable: true
    operation: addColumn
    table: !!python/unicode 'accesstoken'
  - columns:
    - name: token_name
      nullable: true
    operation: addColumn
    table: !!python/unicode 'accesstoken'
  - columns: []
    indexName: accesstoken_token_name
    indexType: unique
    operation: createIndex
    table: accesstoken
  - columns:
    - name: token_name
      nullable: true
    operation: addColumn
    table: !!python/unicode 'appspecificauthtoken'
  - columns:
    - name: token_secret
      nullable: true
    operation: addColumn
    table: !!python/unicode 'appspecificauthtoken'
  - columns: []
    indexName: appspecificauthtoken_token_name
    indexType: unique
    operation: createIndex
    table: appspecificauthtoken
  - columns:
    - name: verification_code
      nullable: true
    operation: addColumn
    table: !!python/unicode 'emailconfirmation'
  - columns:
    - name: token_code
      nullable: true
    operation: addColumn
    table: !!python/unicode 'oauthaccesstoken'
  - columns:
    - name: token_name
      nullable: true
    operation: addColumn
    table: !!python/unicode 'oauthaccesstoken'
  - columns: []
    indexName: oauthaccesstoken_token_name
    indexType: unique
    operation: createIndex
    table: oauthaccesstoken
  - columns:
    - name: secure_client_secret
      nullable: true
    operation: addColumn
    table: !!python/unicode 'oauthapplication'
  - columns:
    - name: fully_migrated
      nullable: false
    operation: addColumn
    table: !!python/unicode 'oauthapplication'
  - columns:
    - name: code_credential
      nullable: true
    operation: addColumn
    table: !!python/unicode 'oauthauthorizationcode'
  - columns:
    - name: code_name
      nullable: true
    operation: addColumn
    table: !!python/unicode 'oauthauthorizationcode'
  - columns: []
    indexName: oauthauthorizationcode_code_name
    indexType: unique
    operation: createIndex
    table: oauthauthorizationcode
  - indexName: oauthauthorizationcode_code
    operation: dropIndex
    table: oauthauthorizationcode
  - columns: []
    indexName: oauthauthorizationcode_code
    indexType: unique
    operation: createIndex
    table: oauthauthorizationcode
  - columns:
    - name: secure_auth_token
      nullable: true
    operation: addColumn
    table: !!python/unicode 'repositorybuildtrigger'
  - columns:
    - name: secure_private_key
      nullable: true
    operation: addColumn
    table: !!python/unicode 'repositorybuildtrigger'
  - columns:
    - name: fully_migrated
      nullable: false
    operation: addColumn
    table: !!python/unicode 'repositorybuildtrigger'
