Index: openacs-4/packages/download/sql/postgresql/upgrade/upgrade-5.2d1-5.2d2.sql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/download/sql/postgresql/upgrade/upgrade-5.2d1-5.2d2.sql,v diff -u -N -r1.1 -r1.2 --- openacs-4/packages/download/sql/postgresql/upgrade/upgrade-5.2d1-5.2d2.sql 16 Sep 2013 09:19:58 -0000 1.1 +++ openacs-4/packages/download/sql/postgresql/upgrade/upgrade-5.2d1-5.2d2.sql 19 Sep 2013 13:10:54 -0000 1.2 @@ -4,5 +4,5 @@ relname in ('download_downloads', 'download_downloads_repository'); UPDATE pg_attribute a SET atttypmod = 44 from pg_class c - where attname = 'download_ip' c.oid = attrelid and + where attname = 'download_ip' and c.oid = attrelid and relname in ('download_downloads', 'download_downloads_repository'); \ No newline at end of file