diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2011-02-27 16:29:16 +0100 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2011-02-27 16:29:40 +0100 |
commit | 84c2491e63ef2797084f9378674d3e38248b7c24 (patch) | |
tree | c451c5846d95afac46a5cc350927c532a5e33d22 /UPGRADING | |
parent | 40ccf77ca0c6745d8b75e925e915cdf51a924312 (diff) | |
download | aur-84c2491e63ef2797084f9378674d3e38248b7c24.tar.gz aur-84c2491e63ef2797084f9378674d3e38248b7c24.tar.xz |
Add note on upgrading from MyISAM to InnoDB to "UPGRADING".
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'UPGRADING')
-rw-r--r-- | UPGRADING | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -30,6 +30,30 @@ ALTER TABLE PackageComments UPDATE PackageComments SET DelUsersID = NULL WHERE DelUsersID = 0; ---- +3. (optional) If you converted your database from MyISAM to InnoDB during the +upgrade process from 1.7.0 to 1.8.0 or from 1.8.0 to 1.8.1 without completely +rebuilding the database from the MySQL schema, you should additionally run the +following MySQL statements to add missing foreign keys: + +---- +ALTER TABLE Users + ADD FOREIGN KEY (AccountTypeID) REFERENCES AccountTypes(ID) ON DELETE NO ACTION; +ALTER TABLE Packages + ADD FOREIGN KEY (CategoryID) REFERENCES PackageCategories(ID) ON DELETE NO ACTION, + ADD FOREIGN KEY (SubmitterUID) REFERENCES Users(ID) ON DELETE NO ACTION, + ADD FOREIGN KEY (MaintainerUID) REFERENCES Users(ID) ON DELETE NO ACTION; +ALTER TABLE PackageVotes + ADD FOREIGN KEY (UsersID) REFERENCES Users(ID) ON DELETE CASCADE, + ADD FOREIGN KEY (PackageID) REFERENCES Packages(ID) ON DELETE CASCADE; +ALTER TABLE PackageComments + ADD FOREIGN KEY (UsersID) REFERENCES Users(ID) ON DELETE CASCADE, + ADD FOREIGN KEY (DelUsersID) REFERENCES Users(ID) ON DELETE CASCADE, + ADD FOREIGN KEY (PackageID) REFERENCES Packages(ID) ON DELETE CASCADE; +ALTER TABLE CommentNotify + ADD FOREIGN KEY (PkgID) REFERENCES Packages(ID) ON DELETE CASCADE, + ADD FOREIGN KEY (UserID) REFERENCES Users(ID) ON DELETE CASCADE; +---- + From 1.7.0 to 1.8.0 ------------------- |