[freeside-commits] freeside/FS/FS Upgrade.pm,1.8,1.9
Ivan,,,
ivan at wavetail.420.am
Mon May 19 20:52:08 PDT 2008
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv11663
Modified Files:
Upgrade.pm
Log Message:
automatically create an index on the new radacct.FreesideStatus column
Index: Upgrade.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/Upgrade.pm,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- Upgrade.pm 18 May 2008 22:57:54 -0000 1.8
+++ Upgrade.pm 20 May 2008 03:52:05 -0000 1.9
@@ -132,6 +132,13 @@
$sth_update->execute or die $sth_update->errstr;
}
+ my $sth_index = $dbh->prepare(
+ "CREATE INDEX FreesideStatus ON radacct ( FreesideStatus )"
+ );
+ if ( $sth_index ) {
+ $sth_index->execute;
+ }
+
my $sth = $dbh->prepare("SELECT UserName,
Realm,
$str2time max(AcctStartTime)),
More information about the freeside-commits
mailing list