summaryrefslogtreecommitdiffstats
path: root/application/migrations/013_add_multipaste.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/013_add_multipaste.php
parent33f542487a89da4a8edad934b82aae7484f70ca3 (diff)
Correcting bracket style for 'if'
Diffstat (limited to 'application/migrations/013_add_multipaste.php')
-rw-r--r--application/migrations/013_add_multipaste.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/application/migrations/013_add_multipaste.php b/application/migrations/013_add_multipaste.php
index 3b97f6986..ef29effa9 100644
--- a/application/migrations/013_add_multipaste.php
+++ b/application/migrations/013_add_multipaste.php
@@ -5,8 +5,7 @@ class Migration_add_multipaste extends CI_Migration {
public function up()
{
- if ($this->db->dbdriver == 'postgre')
- {
+ if ($this->db->dbdriver == 'postgre') {
$this->db->query('
CREATE TABLE "multipaste" (
"url_id" varchar(255) NOT NULL,
@@ -36,9 +35,9 @@ class Migration_add_multipaste extends CI_Migration {
ADD CONSTRAINT "multipaste_file_map_file_id_fkey" FOREIGN KEY ("file_url_id")
REFERENCES "files"("id") ON DELETE CASCADE ON UPDATE CASCADE
');
- }
- else
- {
+
+ } else {
+
$this->db->query('
CREATE TABLE `multipaste` (
`url_id` varchar(255) NOT NULL,