Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jigold committed Oct 13, 2023
1 parent 92e463e commit 07681e3
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions batch/sql/rename-job-groups-tables.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ RENAME TABLE batch_attributes TO job_group_attributes,
aggregated_batch_resources_v3 TO aggregated_job_group_resources_v3,
batches_n_jobs_in_complete_states TO job_groups_n_jobs_in_complete_states, ALGORITHM=INSTANT;

ALTER TABLE RENAME INDEX batch_attributes_key_value TO job_group_attributes_key_value, ALGORITHM=INSTANT;
ALTER TABLE RENAME INDEX batch_attributes_value TO job_group_attributes_value, ALGORITHM=INSTANT;
ALTER TABLE RENAME INDEX batch_attributes_batch_id_key_value TO job_group_attributes_batch_id_key_value, ALGORITHM=INSTANT;
ALTER TABLE RENAME INDEX batch_attributes_batch_id_value TO job_group_attributes_batch_id_value, ALGORITHM=INSTANT;
ALTER TABLE RENAME INDEX batch_attributes_key_value TO job_group_attributes_key_value;
ALTER TABLE RENAME INDEX batch_attributes_value TO job_group_attributes_value;
ALTER TABLE RENAME INDEX batch_attributes_batch_id_key_value TO job_group_attributes_batch_id_key_value;
ALTER TABLE RENAME INDEX batch_attributes_batch_id_value TO job_group_attributes_batch_id_value;

ALTER TABLE RENAME INDEX batches_inst_coll_staging_inst_coll TO job_groups_inst_coll_staging_inst_coll, ALGORITHM=INSTANT;
ALTER TABLE RENAME INDEX batches_inst_coll_staging_batch_id_jg_id TO job_groups_inst_coll_staging_batch_id_jg_id, ALGORITHM=INSTANT;
ALTER TABLE RENAME INDEX batches_inst_coll_staging_inst_coll TO job_groups_inst_coll_staging_inst_coll;
ALTER TABLE RENAME INDEX batches_inst_coll_staging_batch_id_jg_id TO job_groups_inst_coll_staging_batch_id_jg_id;

ALTER TABLE RENAME INDEX batch_inst_coll_cancellable_resources_inst_coll TO job_group_inst_coll_cancellable_resources_inst_coll, ALGORITHM=INSTANT;
ALTER TABLE RENAME INDEX batch_inst_coll_cancellable_resources_jg_id ON job_group_inst_coll_cancellable_resources_jg_id, ALGORITHM=INSTANT;
ALTER TABLE RENAME INDEX batch_inst_coll_cancellable_resources_inst_coll TO job_group_inst_coll_cancellable_resources_inst_coll;
ALTER TABLE RENAME INDEX batch_inst_coll_cancellable_resources_jg_id ON job_group_inst_coll_cancellable_resources_jg_id;

DELIMITER $$

Expand Down

0 comments on commit 07681e3

Please sign in to comment.