diff options
author | Florian Pritz <bluewind@xinu.at> | 2015-09-20 16:03:22 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2015-09-20 16:03:22 +0200 |
commit | 7da9de48d2b3bbb0309d6311e4dc7d275d3bf26d (patch) | |
tree | bc90956bccaad107255e350ed29cad242eede5cc /application/migrations/006_add_username_index.php | |
parent | f149a0d1abb4a79b1d5de9ddb5963b2eab4b126d (diff) | |
parent | e79c1c45dcd23dde1f4b072993829cc008f4858b (diff) |
Merge branch 'postgres' into dev
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` |