From 8956c3aec70ccc98ce2aa95249fc0d1c70809284 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Sun, 22 Sep 2013 09:36:59 +0200 Subject: Use InnoDB for the files table The files table was MyISAM even though all other tables were InnoDB. We should avoid mixing types here (backups, transactions and performance). Signed-off-by: Pierre Schmitz Signed-off-by: Florian Pritz --- application/config/migration.php | 2 +- application/migrations/010_files_innodb.php | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 application/migrations/010_files_innodb.php (limited to 'application') diff --git a/application/config/migration.php b/application/config/migration.php index 5fef0ad40..6cfd09a30 100644 --- a/application/config/migration.php +++ b/application/config/migration.php @@ -21,7 +21,7 @@ $config['migration_enabled'] = true; | be upgraded / downgraded to. | */ -$config['migration_version'] = 9; +$config['migration_version'] = 10; /* diff --git a/application/migrations/010_files_innodb.php b/application/migrations/010_files_innodb.php new file mode 100644 index 000000000..b32f94724 --- /dev/null +++ b/application/migrations/010_files_innodb.php @@ -0,0 +1,16 @@ +db->query(" + ALTER TABLE `files` ENGINE = InnoDB; + "); + } + + public function down() + { + } +} -- cgit v1.2.3-24-g4f1b