pgsql/update_tables_0.5.x-0.6-dovecot-1.2.x.pgsql
branchv0.6.x
changeset 538 1f9ea5658627
parent 530 95dd123b552e
child 548 92ef34f07da3
equal deleted inserted replaced
537:9a23043b0530 538:1f9ea5658627
   193  WHERE tid = (SELECT tid
   193  WHERE tid = (SELECT tid
   194                 FROM domain_data
   194                 FROM domain_data
   195                WHERE domain_data.gid = users.gid);
   195                WHERE domain_data.gid = users.gid);
   196 
   196 
   197 -- ---
   197 -- ---
       
   198 -- Account/domain notes
       
   199 -- ---
       
   200 
       
   201 ALTER TABLE users ADD COLUMN note text NULL DEFAULT NULL;
       
   202 ALTER TABLE domain_data ADD COLUMN note text NULL DEFAULT NULL;
       
   203 
       
   204 -- ---
   198 -- Restore view
   205 -- Restore view
   199 -- ---
   206 -- ---
   200 CREATE VIEW vmm_domain_info AS
   207 CREATE VIEW vmm_domain_info AS
   201     SELECT gid, count(uid) AS accounts,
   208     SELECT gid, count(uid) AS accounts,
   202            (SELECT count(DISTINCT address)
   209            (SELECT count(DISTINCT address)