From 1abe7372404a9d65f3b59eda2d83e628267b366d Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 19 Oct 2014 23:01:51 +0200 Subject: Clean up the postgres changes Style cleanup and some regression fixes Signed-off-by: Florian Pritz --- application/migrations/001_add_files.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'application/migrations/001_add_files.php') diff --git a/application/migrations/001_add_files.php b/application/migrations/001_add_files.php index 70efbb520..30f567325 100644 --- a/application/migrations/001_add_files.php +++ b/application/migrations/001_add_files.php @@ -5,8 +5,7 @@ class Migration_Add_files extends CI_Migration { public function up() { - if ($this->db->dbdriver == 'postgre') - { + if ($this->db->dbdriver == 'postgre') { $this->db->query(' CREATE TABLE IF NOT EXISTS "files" ( "hash" varchar(32) NOT NULL, @@ -20,9 +19,7 @@ class Migration_Add_files extends CI_Migration { CREATE INDEX "files_date_idx" ON files ("date"); CREATE INDEX "files_hash_id_idx" ON files ("hash", "id"); '); - } - else - { + } else { $this->db->query(" CREATE TABLE IF NOT EXISTS `files` ( `hash` varchar(32) CHARACTER SET ascii NOT NULL, -- cgit v1.2.3-24-g4f1b