summaryrefslogtreecommitdiff
path: root/SQL/postgres.update.sql
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-08-06 11:08:58 +0200
committerAleksander Machniak <alec@alec.pl>2012-08-06 11:08:58 +0200
commit565c472918e7f9707cd8d7909ad5dbcc5a921fdf (patch)
tree8c4c40ab241766d931c69ee3ddcca5b3511cc800 /SQL/postgres.update.sql
parent83121ece3348bfe09bb1026eace79a74a5ccf2c9 (diff)
Removed users.alias column, added option ('user_aliases')
to use email address from identities as username (#1488581)
Diffstat (limited to 'SQL/postgres.update.sql')
-rw-r--r--SQL/postgres.update.sql3
1 files changed, 3 insertions, 0 deletions
diff --git a/SQL/postgres.update.sql b/SQL/postgres.update.sql
index a8a9cdda8..11ab93bfc 100644
--- a/SQL/postgres.update.sql
+++ b/SQL/postgres.update.sql
@@ -180,3 +180,6 @@ ALTER TABLE contacts ALTER email TYPE text;
ALTER TABLE cache DROP COLUMN cache_id;
DROP SEQUENCE cache_ids;
+
+ALTER TABLE users DROP COLUMN alias;
+CREATE INDEX identities_email_idx ON identities (email, del);