From fe7f15dbfb8020daf96110e86e359ec01558fcb8 Mon Sep 17 00:00:00 2001 From: Rafael Bodill Date: Thu, 18 Sep 2014 22:47:21 +0300 Subject: Correcting bracket style for 'if' --- application/migrations/004_add_filesize.php | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'application/migrations/004_add_filesize.php') diff --git a/application/migrations/004_add_filesize.php b/application/migrations/004_add_filesize.php index 7e5355c14..f2367937a 100644 --- a/application/migrations/004_add_filesize.php +++ b/application/migrations/004_add_filesize.php @@ -5,15 +5,12 @@ class Migration_Add_filesize extends CI_Migration { public function up() { - if ($this->db->dbdriver == 'postgre') - { + if ($this->db->dbdriver == 'postgre') { $this->db->query(' ALTER TABLE "files" ADD "filesize" integer NOT NULL '); - } - else - { + } else { $this->db->query(" ALTER TABLE `files` ADD `filesize` INT UNSIGNED NOT NULL @@ -23,14 +20,11 @@ class Migration_Add_filesize extends CI_Migration { public function down() { - if ($this->db->dbdriver == 'postgre') - { + if ($this->db->dbdriver == 'postgre') { $this->db->query(' ALTER TABLE "files" DROP "filesize" '); - } - else - { + } else { $this->db->query(' ALTER TABLE `files` DROP `filesize` '); -- cgit v1.2.3-24-g4f1b