Merge branch 'master' of git.freeside.biz:/home/git/freeside
[freeside.git] / rt / etc / upgrade / 4.2.7 / content
1 use strict;
2 use warnings;
3
4 our @Initial = (
5     sub {
6         # We do the delete in pure SQL because Attribute collections
7         # otherwise attempt to hash everything in memory.  As this may
8         # be a large list, do it directly.
9         RT->DatabaseHandle->dbh->do(<<EOSQL);
10             DELETE FROM Attributes
11              WHERE (Name = 'LinkValueTo' OR Name = 'IncludeContentForValue')
12                AND (LENGTH(Content) = 0 OR Content IS NULL)
13 EOSQL
14     },
15 );