blob: e828cc72cb14aa3f72193e7a7899b4a6408909db (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
use strict;
use warnings;
our @Initial = (
sub {
# We do the delete in pure SQL because Attribute collections
# otherwise attempt to hash everything in memory. As this may
# be a large list, do it directly.
RT->DatabaseHandle->dbh->do(<<EOSQL);
DELETE FROM Attributes
WHERE (Name = 'LinkValueTo' OR Name = 'IncludeContentForValue')
AND (LENGTH(Content) = 0 OR Content IS NULL)
EOSQL
},
);
|