From 3b05c5c5f662e8facb7120d229baa32c50e167c1 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Fri, 19 Apr 2013 16:40:58 +0200 Subject: [PATCH] Alter table to migrate existing databases to InnoDB --- .../e-smith/templates/etc/e-smith/sql/init/qpsmtpdLog2Sql | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/root/etc/e-smith/templates/etc/e-smith/sql/init/qpsmtpdLog2Sql b/root/etc/e-smith/templates/etc/e-smith/sql/init/qpsmtpdLog2Sql index e05df7f..d6ebfb4 100644 --- a/root/etc/e-smith/templates/etc/e-smith/sql/init/qpsmtpdLog2Sql +++ b/root/etc/e-smith/templates/etc/e-smith/sql/init/qpsmtpdLog2Sql @@ -41,6 +41,14 @@ REPLACE INTO db ( 'N', 'Y', 'Y'); FLUSH PRIVILEGES; + +USE smtp_log; + +ALTER TABLE messages ENGINE=InnodDB; +ALTER TABLE message_headers ENGINE=InnodDB; +ALTER TABLE message_body ENGINE=InnodDB; +ALTER TABLE rcpts ENGINE=InnodDB; + EOF END }