[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb:[6907] branches/1.3
- Subject: SF.net SVN: ledger-smb:[6907] branches/1.3
- From: ..hidden..
- Date: Thu, 27 Feb 2014 05:56:48 +0000
Revision: 6907
http://sourceforge.net/p/ledger-smb/code/6907
Author: einhverfr
Date: 2014-02-27 05:56:47 +0000 (Thu, 27 Feb 2014)
Log Message:
-----------
Support for zero-downtime upgrades
Modified Paths:
--------------
branches/1.3/Changelog
branches/1.3/LedgerSMB/Form.pm
branches/1.3/LedgerSMB.pm
Modified: branches/1.3/Changelog
===================================================================
--- branches/1.3/Changelog 2014-02-27 04:34:08 UTC (rev 6906)
+++ branches/1.3/Changelog 2014-02-27 05:56:47 UTC (rev 6907)
@@ -7,6 +7,7 @@
* Fixed internal server error deleting part (Chris T, 1027)
* Fixed Internal server error saving part with all vendor rows (Chris T, 1028)
* Fixed pricelist pdf column widths all equal (Chris T, 1037)
+* Added support for zero-downtime upgrades (Chris T)
Changelog for 1.3.38
* Fixed AR/AP transactions resetting currency/exchange rate (Chris T)
Modified: branches/1.3/LedgerSMB/Form.pm
===================================================================
--- branches/1.3/LedgerSMB/Form.pm 2014-02-27 04:34:08 UTC (rev 6906)
+++ branches/1.3/LedgerSMB/Form.pm 2014-02-27 05:56:47 UTC (rev 6907)
@@ -1412,7 +1412,8 @@
WHERE setting_key = 'version'");
$sth->execute;
my ($dbversion) = $sth->fetchrow_array;
- if ($dbversion ne $self->{dbversion}){
+ my $ignore_version = LedgerSMB::Setting->get('ignore_version');
+ if (($dbversion ne $self->{dbversion}) and !$ignore_version){
$self->error("Database is not the expected version.");
}
Modified: branches/1.3/LedgerSMB.pm
===================================================================
--- branches/1.3/LedgerSMB.pm 2014-02-27 04:34:08 UTC (rev 6906)
+++ branches/1.3/LedgerSMB.pm 2014-02-27 05:56:47 UTC (rev 6907)
@@ -1025,7 +1025,9 @@
($self->{_role_prefix}) = $sth->fetchrow_array;
- if ($dbversion ne $self->{dbversion}){
+
+ my $ignore_version = LedgerSMB::Setting->get('ignore_version');
+ if (($dbversion ne $self->{dbversion}) and !$ignore_version){
$self->error("Database is not the expected version. Was $dbversion, expected $self->{dbversion}. Please re-run setup.pl against this database to correct.<a href='setup.pl'>setup.pl</a>");
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits