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

class Migration_files_innodb extends CI_Migration {

	public function up()
	{
		$prefix = $this->db->dbprefix;

		if ($this->db->dbdriver != 'postgre') {
			$this->db->query('
				ALTER TABLE `'.$prefix.'files` ENGINE = InnoDB;
			');
		}
	}

	public function down()
	{
	}
}