Skip to content

Commit

Permalink
Switch to InnoDB
Browse files Browse the repository at this point in the history
Fixes #1016
  • Loading branch information
dfabulich committed Nov 7, 2024
1 parent 2d67050 commit 7a7dbe7
Show file tree
Hide file tree
Showing 2 changed files with 113 additions and 0 deletions.
56 changes: 56 additions & 0 deletions sql/patch-full-schema.sql
Original file line number Diff line number Diff line change
@@ -1,2 +1,58 @@
USE ifdb;

ALTER TABLE `audit` Engine = InnoDB;
ALTER TABLE `blockedtagsynonyms` Engine = InnoDB;
ALTER TABLE `clubmembers` Engine = InnoDB;
ALTER TABLE `clubs` Engine = InnoDB;
ALTER TABLE `compdivs` Engine = InnoDB;
ALTER TABLE `competitions` Engine = InnoDB;
ALTER TABLE `compgames` Engine = InnoDB;
ALTER TABLE `compprofilelinks` Engine = InnoDB;
ALTER TABLE `comps_history` Engine = InnoDB;
ALTER TABLE `crossrecs` Engine = InnoDB;
ALTER TABLE `downloadhelp` Engine = InnoDB;
ALTER TABLE `extreviews` Engine = InnoDB;
ALTER TABLE `filetypes` Engine = InnoDB;
ALTER TABLE `formatprivs` Engine = InnoDB;
ALTER TABLE `gamefwds` Engine = InnoDB;
ALTER TABLE `gamelinks` Engine = InnoDB;
ALTER TABLE `gameprofilelinks` Engine = InnoDB;
ALTER TABLE `gameRatingsSandbox0_mv` Engine = InnoDB;
ALTER TABLE `games_history` Engine = InnoDB;
ALTER TABLE `games` Engine = InnoDB;
ALTER TABLE `gametags` Engine = InnoDB;
ALTER TABLE `gamexrefs` Engine = InnoDB;
ALTER TABLE `gamexreftypes` Engine = InnoDB;
ALTER TABLE `ifids` Engine = InnoDB;
ALTER TABLE `iso639` Engine = InnoDB;
ALTER TABLE `iso639x` Engine = InnoDB;
ALTER TABLE `logins` Engine = InnoDB;
ALTER TABLE `mirrors` Engine = InnoDB;
ALTER TABLE `news` Engine = InnoDB;
ALTER TABLE `nonces` Engine = InnoDB;
ALTER TABLE `operatingsystems` Engine = InnoDB;
ALTER TABLE `osprivs` Engine = InnoDB;
ALTER TABLE `osversions` Engine = InnoDB;
ALTER TABLE `persistentsessions` Engine = InnoDB;
ALTER TABLE `playedgames` Engine = InnoDB;
ALTER TABLE `pollcomments` Engine = InnoDB;
ALTER TABLE `polls` Engine = InnoDB;
ALTER TABLE `pollvotes` Engine = InnoDB;
ALTER TABLE `privileges` Engine = InnoDB;
ALTER TABLE `reclistitems` Engine = InnoDB;
ALTER TABLE `reclists` Engine = InnoDB;
ALTER TABLE `reviewflags` Engine = InnoDB;
ALTER TABLE `reviews` Engine = InnoDB;
ALTER TABLE `reviewtags` Engine = InnoDB;
ALTER TABLE `reviewvotes` Engine = InnoDB;
ALTER TABLE `sitenews` Engine = InnoDB;
ALTER TABLE `specialreviewers` Engine = InnoDB;
ALTER TABLE `stylepics` Engine = InnoDB;
ALTER TABLE `stylesheets` Engine = InnoDB;
ALTER TABLE `tagstats` Engine = InnoDB;
ALTER TABLE `ucomments` Engine = InnoDB;
ALTER TABLE `unwishlists` Engine = InnoDB;
ALTER TABLE `userfilters` Engine = InnoDB;
ALTER TABLE `users` Engine = InnoDB;
ALTER TABLE `userScores_mv` Engine = InnoDB;
ALTER TABLE `wishlists` Engine = InnoDB;
57 changes: 57 additions & 0 deletions sql/patch-schema-2.sql
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,60 @@ ALTER TABLE `userfilters` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unico
ALTER TABLE `users` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `userScores_mv` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `wishlists` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;

ALTER TABLE `audit` Engine = InnoDB;
ALTER TABLE `blockedtagsynonyms` Engine = InnoDB;
ALTER TABLE `clubmembers` Engine = InnoDB;
ALTER TABLE `clubs` Engine = InnoDB;
ALTER TABLE `compdivs` Engine = InnoDB;
ALTER TABLE `competitions` Engine = InnoDB;
ALTER TABLE `compgames` Engine = InnoDB;
ALTER TABLE `compprofilelinks` Engine = InnoDB;
ALTER TABLE `comps_history` Engine = InnoDB;
ALTER TABLE `crossrecs` Engine = InnoDB;
ALTER TABLE `downloadhelp` Engine = InnoDB;
ALTER TABLE `extreviews` Engine = InnoDB;
ALTER TABLE `filetypes` Engine = InnoDB;
ALTER TABLE `formatprivs` Engine = InnoDB;
ALTER TABLE `gamefwds` Engine = InnoDB;
ALTER TABLE `gamelinks` Engine = InnoDB;
ALTER TABLE `gameprofilelinks` Engine = InnoDB;
ALTER TABLE `gameRatingsSandbox0_mv` Engine = InnoDB;
ALTER TABLE `games_history` Engine = InnoDB;
ALTER TABLE `games` Engine = InnoDB;
ALTER TABLE `gametags` Engine = InnoDB;
ALTER TABLE `gamexrefs` Engine = InnoDB;
ALTER TABLE `gamexreftypes` Engine = InnoDB;
ALTER TABLE `ifids` Engine = InnoDB;
ALTER TABLE `iso639` Engine = InnoDB;
ALTER TABLE `iso639x` Engine = InnoDB;
ALTER TABLE `logins` Engine = InnoDB;
ALTER TABLE `mirrors` Engine = InnoDB;
ALTER TABLE `news` Engine = InnoDB;
ALTER TABLE `nonces` Engine = InnoDB;
ALTER TABLE `operatingsystems` Engine = InnoDB;
ALTER TABLE `osprivs` Engine = InnoDB;
ALTER TABLE `osversions` Engine = InnoDB;
ALTER TABLE `persistentsessions` Engine = InnoDB;
ALTER TABLE `playedgames` Engine = InnoDB;
ALTER TABLE `pollcomments` Engine = InnoDB;
ALTER TABLE `polls` Engine = InnoDB;
ALTER TABLE `pollvotes` Engine = InnoDB;
ALTER TABLE `privileges` Engine = InnoDB;
ALTER TABLE `reclistitems` Engine = InnoDB;
ALTER TABLE `reclists` Engine = InnoDB;
ALTER TABLE `reviewflags` Engine = InnoDB;
ALTER TABLE `reviews` Engine = InnoDB;
ALTER TABLE `reviewtags` Engine = InnoDB;
ALTER TABLE `reviewvotes` Engine = InnoDB;
ALTER TABLE `sitenews` Engine = InnoDB;
ALTER TABLE `specialreviewers` Engine = InnoDB;
ALTER TABLE `stylepics` Engine = InnoDB;
ALTER TABLE `stylesheets` Engine = InnoDB;
ALTER TABLE `tagstats` Engine = InnoDB;
ALTER TABLE `ucomments` Engine = InnoDB;
ALTER TABLE `unwishlists` Engine = InnoDB;
ALTER TABLE `userfilters` Engine = InnoDB;
ALTER TABLE `users` Engine = InnoDB;
ALTER TABLE `userScores_mv` Engine = InnoDB;
ALTER TABLE `wishlists` Engine = InnoDB;

0 comments on commit 7a7dbe7

Please sign in to comment.