[freeside-commits] freeside/FS/bin freeside-upgrade, 1.31.2.4, 1.31.2.5
Ivan,,,
ivan at wavetail.420.am
Sun Apr 4 23:57:27 PDT 2010
Update of /home/cvs/cvsroot/freeside/FS/bin
In directory wavetail.420.am:/tmp/cvs-serv16451
Modified Files:
Tag: FREESIDE_1_9_BRANCH
freeside-upgrade
Log Message:
require DBIx::DBSchema 0.39 for mysql
Index: freeside-upgrade
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/bin/freeside-upgrade,v
retrieving revision 1.31.2.4
retrieving revision 1.31.2.5
diff -u -w -d -r1.31.2.4 -r1.31.2.5
--- freeside-upgrade 9 Jan 2010 08:21:46 -0000 1.31.2.4
+++ freeside-upgrade 5 Apr 2010 06:57:25 -0000 1.31.2.5
@@ -4,7 +4,7 @@
use vars qw($opt_d $opt_s $opt_q $opt_v $opt_r);
use vars qw($DEBUG $DRY_RUN);
use Getopt::Std;
-use DBIx::DBSchema 0.31;
+use DBIx::DBSchema 0.31; #0.39
use FS::UID qw(adminsuidsetup checkeuid datasrc driver_name); #getsecrets);
use FS::CurrentUser;
use FS::Schema qw( dbdef dbdef_dist reload_dbdef );
@@ -30,6 +30,11 @@
my $dbh = adminsuidsetup($user);
$FS::UID::callback_hack = 0;
+if ( driver_name =~ /^mysql/i ) { #until 0.39 is required above
+ eval "use DBIx::DBSchema 0.39;";
+ die $@ if $@;
+}
+
#needs to match FS::Schema...
my $dbdef_file = "%%%FREESIDE_CONF%%%/dbdef.". datasrc;
More information about the freeside-commits
mailing list