Changeset 4603 in subversion


Ignore:
Timestamp:
Mar 10, 2011 7:30:42 AM (2 years ago)
Author:
alec
Message:
  • Force names of unique constraints in PostgreSQL DDL (postgres 9.x uses different naming convention than older versions)
Location:
trunk/roundcubemail
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/CHANGELOG

    r4601 r4603  
    22=========================== 
    33 
     4- Force names of unique constraints in PostgreSQL DDL 
    45- Add code for prevention from IMAP connection hangs when server closes socket unexpectedly 
    56- Remove redundant DELETE query (for old session deletion) on login 
  • trunk/roundcubemail/SQL/postgres.initial.sql

    r4567 r4603  
    2626    "language" varchar(5), 
    2727    preferences text DEFAULT ''::text NOT NULL, 
    28     UNIQUE (username, mail_host) 
     28    CONSTRAINT users_username_key UNIQUE (username, mail_host) 
    2929); 
    3030 
     
    221221    headers text NOT NULL, 
    222222    structure text, 
    223     UNIQUE (user_id, cache_key, uid) 
     223    CONSTRAINT messages_user_id_key UNIQUE (user_id, cache_key, uid) 
    224224); 
    225225 
  • trunk/roundcubemail/SQL/postgres.update.sql

    r4573 r4603  
    8686 
    8787DROP INDEX users_username_id_idx; 
    88 ALTER TABLE users ADD UNIQUE (username, mail_host); 
     88ALTER TABLE users ADD CONSTRAINT users_username_key UNIQUE (username, mail_host); 
    8989ALTER TABLE contacts ALTER email TYPE varchar(255); 
    9090 
Note: See TracChangeset for help on using the changeset viewer.