summaryrefslogtreecommitdiffstats
path: root/application/migrations/007_repurpose_invitations.php
diff options
context:
space:
mode:
authorRafael Bodill <rafi@sortex.co.il>2014-09-18 21:47:21 +0200
committerRafael Bodill <rafi@sortex.co.il>2014-09-18 21:47:21 +0200
commitfe7f15dbfb8020daf96110e86e359ec01558fcb8 (patch)
tree60f59922c52d1607cd7c8ebbdb48b8b6101d2648 /application/migrations/007_repurpose_invitations.php
parent33f542487a89da4a8edad934b82aae7484f70ca3 (diff)
Correcting bracket style for 'if'
Diffstat (limited to 'application/migrations/007_repurpose_invitations.php')
-rw-r--r--application/migrations/007_repurpose_invitations.php15
1 files changed, 7 insertions, 8 deletions
diff --git a/application/migrations/007_repurpose_invitations.php b/application/migrations/007_repurpose_invitations.php
index 8f83ff7c9..024b62984 100644
--- a/application/migrations/007_repurpose_invitations.php
+++ b/application/migrations/007_repurpose_invitations.php
@@ -5,8 +5,7 @@ class Migration_Repurpose_invitations extends CI_Migration {
public function up()
{
- if ($this->db->dbdriver == 'postgre')
- {
+ if ($this->db->dbdriver == 'postgre') {
$this->db->query('
ALTER TABLE "invitations"
ADD "action" character varying(255) NOT NULL,
@@ -21,9 +20,9 @@ class Migration_Repurpose_invitations extends CI_Migration {
$this->db->query('
ALTER TABLE "invitations" RENAME TO "actions";
');
- }
- else
- {
+
+ } else {
+
$this->db->query("
ALTER TABLE `invitations`
ADD `action` VARCHAR(255) NOT NULL,
@@ -51,9 +50,9 @@ class Migration_Repurpose_invitations extends CI_Migration {
DROP "action",
DROP "data";
');
- }
- else
- {
+
+ } else {
+
$this->db->query('ALTER TABLE `actions` RENAME `invitations`');
$this->db->query('
ALTER TABLE `invitations`