-- Migration 002: convert the mission-commit tables to InnoDB. -- -- Why: console.php "Commit Mission" now snapshots to pqs_currentmission and -- archives to pqs_pastmissions inside a transaction (with the queue delete + -- mission completion). For that to roll back cleanly on error, these two must -- be InnoDB as well. (DELETE, not TRUNCATE, is used on pqs_currentmission so it -- stays inside the transaction.) -- -- Safe and reversible; run once: -- mysql -u pqs -ppqs pqs < dev/migrations/002-innodb-commit-tables.sql ALTER TABLE pqs_currentmission ENGINE=InnoDB; ALTER TABLE pqs_pastmissions ENGINE=InnoDB;