[Affelio-cvs 526] CVS update: affelio

Back to archive index

Tadashi Okoshi slash****@users*****
2005年 7月 4日 (月) 11:19:25 JST


Index: affelio/upgrade-10RC1-10RC11.cgi
diff -u affelio/upgrade-10RC1-10RC11.cgi:1.1 affelio/upgrade-10RC1-10RC11.cgi:1.2
--- affelio/upgrade-10RC1-10RC11.cgi:1.1	Mon Jul  4 10:47:30 2005
+++ affelio/upgrade-10RC1-10RC11.cgi	Mon Jul  4 11:19:24 2005
@@ -30,7 +30,7 @@
 if($q->url_param("mode") ne "go"){
     print "Content-type: text/html; charset=UTF-8\n";
     print "Pragma: no-cache", "\n\n"; 
-    print '<HTML><B>Upgrade Affelio from 1.0RC1 to 1.0RC1.1</B><P>このスクリプトは、1.0RC1で不具合のある足跡データベースをアップグレードします。1.0RC1をお使いの方のみ実行してください。<P><FORM ACTION="upgrade-10RC1-to-10RC11.cgi?mode=go" method=POST><INPUT TYPE="submit" VALUE="Go"></FORM></HTML>';
+    print '<HTML><B>Upgrade Affelio from 1.0RC1 to 1.0RC1.1</B><P>このスクリプトは、1.0RC1で不具合のある足跡データベースをリセットします。<bR>1.0RC1をMySQLとともにお使いで、足跡が表示されない場合のみ実行してください。<P><FORM ACTION="upgrade-10RC1-10RC11.cgi?mode=go" method=POST><INPUT TYPE="submit" VALUE="Go"></FORM></HTML>';
     exit(1);
 
 #########################################################################
@@ -48,26 +48,23 @@
 	error($q, "Affelio load error.\n" . $e->stacktrace);
     };
     
-    ################################
-    #Create new Message table
-    ################################
-    
-
-    ################################
-    #Copy data from the old one to new one
-    ################################
-
-
-    ################################
-    #Delete old one
-    ################################
-
-
-    ################################
-    #Renew new one
-    ################################
-
-
+    my $query = 'drop table AFuser_CORE_accesslog';
+    my $sth;
+    eval{
+	$sth = $af->{db}->prepare($query);
+	$sth->execute;
+    };
+    if($@){
+	print "Content-type: text/html; charset=UTF-8\n";
+	print "Pragma: no-cache", "\n\n"; 
+	print 'Error!<BR><BR>' .  $@;
+	exit(1);
+    }
+
+    print "Content-type: text/html; charset=UTF-8\n";
+    print "Pragma: no-cache", "\n\n"; 
+    print 'OK. Successfuly done.<P><B>Delete this CGI immediately!!</B>';
+    exit(1);
 }
 
 


Affelio-cvs メーリングリストの案内
Back to archive index