projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RT 4.0.19
[freeside.git]
/
rt
/
etc
/
upgrade
/
3.9.8
/
content
diff --git
a/rt/etc/upgrade/3.9.8/content
b/rt/etc/upgrade/3.9.8/content
index
db717cd
..
24242fd
100644
(file)
--- a/
rt/etc/upgrade/3.9.8/content
+++ b/
rt/etc/upgrade/3.9.8/content
@@
-1,9
+1,6
@@
@Initial = sub {
@Initial = sub {
- my $dbh = $RT::Handle->dbh;
- my $sth = $dbh->table_info( '', undef, undef, "'TABLE'");
my $found_fm_tables = {};
my $found_fm_tables = {};
- while ( my $table = $sth->fetchrow_hashref ) {
- my $name = $table->{TABLE_NAME} || $table->{table_name};
+ foreach my $name ( $RT::Handle->_TableNames ) {
next unless $name =~ /^fm_/i;
$found_fm_tables->{lc $name}++;
}
next unless $name =~ /^fm_/i;
$found_fm_tables->{lc $name}++;
}
@@
-16,6
+13,7
@@
$RT::Logger->error("We found RTFM tables in your database. Checking for content.");
$RT::Logger->error("We found RTFM tables in your database. Checking for content.");
+ my $dbh = $RT::Handle->dbh;
my $result = $dbh->selectall_arrayref("SELECT count(*) AS articlecount FROM FM_Articles", { Slice => {} } );
if ($result->[0]{articlecount} > 0) {
my $result = $dbh->selectall_arrayref("SELECT count(*) AS articlecount FROM FM_Articles", { Slice => {} } );
if ($result->[0]{articlecount} > 0) {