Uploaded image for project: 'Airavata'
  1. Airavata
  2. AIRAVATA-2242

SQL migration script for 0.17 release

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • 0.17
    • None
    • None

    Description

      Migration script:

      -- AIRAVATA-2232
      alter table CREDENTIALS add column CREDENTIAL_OWNER_TYPE VARCHAR(10) DEFAULT 'GATEWAY' NOT NULL;
      
      update 
      	master_credentialstore_gw77.CREDENTIALS 
      set 
      	credential_owner_type = 'USER' 
      where 
      	token_id in (
      		select 
      			resource_cs_token 
      		from 
      			master_appcatalog_gw77.USER_COMPUTE_RESOURCE_PREFERENCE 
      		union 
      		select 
      			RESOURCE_CS_TOKEN 
      		from 
      			master_appcatalog_gw77.USER_STORAGE_PREFERENCE 
      		UNION 
      		select 
      			cs_token 
      		from 
      			master_appcatalog_gw77.USER_RESOURCE_PROFILE
      	);
      

      Attachments

        Issue Links

          Activity

            People

              marcuschristie Marcus Christie
              marcuschristie Marcus Christie
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: