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

class Migration_Add_filesize extends CI_Migration {

	public function up()
	{
		$this->db->query("
			ALTER TABLE `files`
			ADD `filesize` INT UNSIGNED NOT NULL
		");
	}

	public function down()
	{
		$this->db->query("
			ALTER TABLE `files`
			DROP `filesize`
		");

	}
}