[vhffs-dev] [466] Modified \ fixing script in order to user vhffs_users instead of vhffs_user_info (the former is dropped before the fix is executed).

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 466
Author:   beuss
Date:     2007-02-17 09:07:43 +0000 (Sat, 17 Feb 2007)

Log Message:
-----------
Modified \ fixing script in order to user vhffs_users instead of vhffs_user_info (the former is dropped before the fix is executed).

Modified Paths:
--------------
    branches/vhffs_4.1/vhffs-compat/updatedb.pl


Modified: branches/vhffs_4.1/vhffs-compat/updatedb.pl
===================================================================
--- branches/vhffs_4.1/vhffs-compat/updatedb.pl	2007-02-16 23:09:28 UTC (rev 465)
+++ branches/vhffs_4.1/vhffs-compat/updatedb.pl	2007-02-17 09:07:43 UTC (rev 466)
@@ -233,9 +233,9 @@
     $sth->execute($_->[1], $_->[0]) or warn "Unable to update user #$_->[0] (shell : $_->[1])\n";
 }
 
-$rows = $dbh->selectall_arrayref('SELECT uid, firstname, lastname, address, city, country FROM vhffs_user_info', { Slice => {} });
+$rows = $dbh->selectall_arrayref('SELECT uid, firstname, lastname, address, city, country FROM vhffs_users', { Slice => {} });
 
-$sth = $dbh->prepare('UPDATE vhffs_user_info SET firstname = ?, lastname = ?, address = ?, city = ?, country = ? WHERE uid = ?');
+$sth = $dbh->prepare('UPDATE vhffs_users SET firstname = ?, lastname = ?, address = ?, city = ?, country = ? WHERE uid = ?');
 foreach(@$rows) {
     foreach my $prop (qw(firstname lastname address, city, country) ) {
         $_->{$prop} =~ s/\\([^\\])/$1/g;


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/