diff options
author | Rafael Bodill <rafi@sortex.co.il> | 2014-09-18 21:47:21 +0200 |
---|---|---|
committer | Rafael Bodill <rafi@sortex.co.il> | 2014-09-18 21:47:21 +0200 |
commit | fe7f15dbfb8020daf96110e86e359ec01558fcb8 (patch) | |
tree | 60f59922c52d1607cd7c8ebbdb48b8b6101d2648 /application/migrations/003_add_referrers.php | |
parent | 33f542487a89da4a8edad934b82aae7484f70ca3 (diff) |
Correcting bracket style for 'if'
Diffstat (limited to 'application/migrations/003_add_referrers.php')
-rw-r--r-- | application/migrations/003_add_referrers.php | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/application/migrations/003_add_referrers.php b/application/migrations/003_add_referrers.php index 1f6b966e3..9ca167eab 100644 --- a/application/migrations/003_add_referrers.php +++ b/application/migrations/003_add_referrers.php @@ -5,8 +5,7 @@ class Migration_Add_referrers extends CI_Migration { public function up() { - if ($this->db->dbdriver == 'postgre') - { + if ($this->db->dbdriver == 'postgre') { $this->db->query(' CREATE TABLE "invitations" ( "user" integer NOT NULL, @@ -21,9 +20,9 @@ class Migration_Add_referrers extends CI_Migration { ALTER TABLE "users" ADD "referrer" integer NOT NULL DEFAULT 0 '); - } - else - { + + } else { + $this->db->query(" CREATE TABLE `invitations` ( `user` int(8) unsigned NOT NULL, @@ -48,9 +47,7 @@ class Migration_Add_referrers extends CI_Migration { $this->db->query(' ALTER TABLE "users" DROP "referrer" '); - } - else - { + } else { $this->db->query(' ALTER TABLE `users` DROP `referrer` '); |