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);
}