diff options
author | Florian Pritz <bluewind@xinu.at> | 2015-09-20 15:46:09 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2015-09-20 15:46:09 +0200 |
commit | 2e627d7a88aed82363a7ad48dab21b2b55797452 (patch) | |
tree | 1f842ca5711765a9dd8f1c2eefc0a3994493f44f /application/migrations/006_add_username_index.php | |
parent | ffacb290fa8a30e6f3e507bf6842b281efbcd558 (diff) |
postgres: Add missing prefix to index creation
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/migrations/006_add_username_index.php')
-rw-r--r-- | application/migrations/006_add_username_index.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/application/migrations/006_add_username_index.php b/application/migrations/006_add_username_index.php index 0e6dc7650..1633a95a9 100644 --- a/application/migrations/006_add_username_index.php +++ b/application/migrations/006_add_username_index.php @@ -9,7 +9,7 @@ class Migration_Add_username_index extends CI_Migration { if ($this->db->dbdriver == 'postgre') { $this->db->query(' - CREATE UNIQUE INDEX "users_username_idx" ON "'.$prefix.'users" ("username") + CREATE UNIQUE INDEX "'.$prefix.'users_username_idx" ON "'.$prefix.'users" ("username") '); } else { $this->db->query(' @@ -24,7 +24,7 @@ class Migration_Add_username_index extends CI_Migration { $prefix = $this->db->dbprefix; if ($this->db->dbdriver == 'postgre') { - $this->db->query('DROP INDEX "users_username_idx"'); + $this->db->query('DROP INDEX "'.$prefix.'users_username_idx"'); } else { $this->db->query(" ALTER TABLE `'.$prefix.'users` |