summaryrefslogtreecommitdiffstats
path: root/application/migrations/009_add_apikeys.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/009_add_apikeys.php
parent33f542487a89da4a8edad934b82aae7484f70ca3 (diff)
Correcting bracket style for 'if'
Diffstat (limited to 'application/migrations/009_add_apikeys.php')
-rw-r--r--application/migrations/009_add_apikeys.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/application/migrations/009_add_apikeys.php b/application/migrations/009_add_apikeys.php
index 7b1b5aa58..bdc4dd07d 100644
--- a/application/migrations/009_add_apikeys.php
+++ b/application/migrations/009_add_apikeys.php
@@ -5,8 +5,7 @@ class Migration_Add_apikeys extends CI_Migration {
public function up()
{
- if ($this->db->dbdriver == 'postgre')
- {
+ if ($this->db->dbdriver == 'postgre') {
$this->db->query('
CREATE TABLE "apikeys" (
"key" varchar(64) NOT NULL,
@@ -17,9 +16,9 @@ class Migration_Add_apikeys extends CI_Migration {
);
CREATE INDEX "apikeys_user_idx" ON "apikeys" ("user");
');
- }
- else
- {
+
+ } else {
+
$this->db->query("
CREATE TABLE `apikeys` (
`key` varchar(64) COLLATE utf8_bin NOT NULL,