summaryrefslogtreecommitdiffstats
path: root/application/migrations/010_files_innodb.php
blob: f965344d249e219e8976f3aaa2227ff26893903c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Migration_files_innodb extends CI_Migration {

	public function up()
	{
		if ($this->db->dbdriver != 'postgre')
		{
			$this->db->query("
				ALTER TABLE `files` ENGINE = InnoDB;
			");
		}
	}

	public function down()
	{
	}
}