[Bps-public-commit] Prophet branch, master, updated. 0.69_01-54-gdf7dde8

jesse jesse at bestpractical.com
Thu Sep 3 22:53:48 EDT 2009


The branch, master has been updated
       via  df7dde89643d4ecb7fe75b46122510a10fac8b53 (commit)
      from  2942cab6990ace93723b7f1d54b6e926b6ad0782 (commit)

Summary of changes:
 lib/Prophet/Replica/sqlite.pm |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

- Log -----------------------------------------------------------------
commit df7dde89643d4ecb7fe75b46122510a10fac8b53
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Thu Sep 3 22:53:14 2009 -0400

    The v4 upgrade code for sqlite replicas was broken. now on v5

diff --git a/lib/Prophet/Replica/sqlite.pm b/lib/Prophet/Replica/sqlite.pm
index c09ffd7..c6b329e 100644
--- a/lib/Prophet/Replica/sqlite.pm
+++ b/lib/Prophet/Replica/sqlite.pm
@@ -155,7 +155,7 @@ sub _check_for_upgrades {
     my $self = shift;
    if  ( $self->replica_version && $self->replica_version < 2) { $self->_upgrade_replica_to_v2(); } 
    if  ( $self->replica_version && $self->replica_version < 3) { $self->_upgrade_replica_to_v3(); } 
-   if  ( $self->replica_version && $self->replica_version < 4) { $self->_upgrade_replica_to_v4(); }
+   if  ( $self->replica_version && $self->replica_version < 5) { $self->_upgrade_replica_to_v5(); }
 
 }
 
@@ -981,14 +981,14 @@ sub _upgrade_replica_to_v3 {
 }
 
 
-sub _upgrade_replica_to_v4 {
+sub _upgrade_replica_to_v5 {
     my $self = shift;
 
     $self->_do_db_upgrades(
         statements => [
-            q{UPDATE userdata SET key = lower(key)}
+            q{UPDATE local_metadata SET key = lower(key)}
         ],
-        version => 4
+        version => 5
     );
 }
 

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list