Skip to content
Discussion options

You must be logged in to vote

Done. For future reference, this is what I did and where I initially struggled:

  • make sure to take database offline and prevent any external access (from users and workers). Otherwise the conversion will be blocked.
  • make sure to have enough headroom on database drive. Both for increased table size and temp data used during conversion (when using ALGORITHM=COPY)
-- Extend lock wait timeout so ALTER has time
SET SESSION innodb_lock_wait_timeout = 1800;

-- 1) Drop FK on child
ALTER TABLE `roselab_trial`.`_trial_event`
  DROP FOREIGN KEY `_trial_event_ibfk_2`;

-- 2) Alter parent table
ALTER TABLE `roselab_event`.`_event`
  MODIFY COLUMN `event_start_time` DECIMAL(11,5) NOT NULL,
  ALGORITH…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@trose-neuro
Comment options

@dimitri-yatsenko
Comment options

@trose-neuro
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by trose-neuro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants