diff options
author | Florian Pritz <bluewind@xinu.at> | 2012-04-11 12:13:28 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2012-04-11 12:13:28 +0200 |
commit | ce6162603ec08565f9ef9ff406e321b4bae2f038 (patch) | |
tree | 8725fc92320b0cf19909615098efecfdbeceb17b /application/migrations | |
parent | f953eba8d7c9e362fd18a311367a6fc7b9b9cac4 (diff) |
Add filesize to history view
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/migrations')
-rw-r--r-- | application/migrations/004_add_filesize.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/application/migrations/004_add_filesize.php b/application/migrations/004_add_filesize.php new file mode 100644 index 000000000..d7a70223d --- /dev/null +++ b/application/migrations/004_add_filesize.php @@ -0,0 +1,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` + "); + + } +} |