From ce6162603ec08565f9ef9ff406e321b4bae2f038 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Wed, 11 Apr 2012 12:13:28 +0200 Subject: Add filesize to history view Signed-off-by: Florian Pritz --- application/migrations/004_add_filesize.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 application/migrations/004_add_filesize.php (limited to 'application/migrations/004_add_filesize.php') 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 @@ +db->query(" + ALTER TABLE `files` + ADD `filesize` INT UNSIGNED NOT NULL + "); + } + + public function down() + { + $this->db->query(" + ALTER TABLE `files` + DROP `filesize` + "); + + } +} -- cgit v1.2.3-24-g4f1b