[Affelio-cvs 1396] CVS update: affelio

Back to archive index

Tadashi Okoshi slash****@users*****
2006年 8月 8日 (火) 09:18:42 JST


Index: affelio/upgrade.cgi
diff -u affelio/upgrade.cgi:1.17 affelio/upgrade.cgi:1.18
--- affelio/upgrade.cgi:1.17	Tue Aug  8 08:07:07 2006
+++ affelio/upgrade.cgi	Tue Aug  8 09:18:42 2006
@@ -275,14 +275,6 @@
     add_column($af, 'AFuser_CORE_my_news', 'sha1digest', "TEXT", "' '");
 
     ################################
-    #Add columns to friend tale
-    ################################
-    add_column($af, 'AFuser_CORE_friends', 'type', "TEXT", "'Personal'");
-    add_column($af, 'AFuser_CORE_friends', 'flag', "TEXT", "NULL");
-    add_column($af, 'AFuser_CORE_friendsfriends', 'type', "TEXT", "'Personal'");
-    add_column($af, 'AFuser_CORE_friendsfriends', 'flag', "TEXT", "NULL");
-
-    ################################
     #*MySQL case*
     #Change AFuser_CORE_my_news.datetime from INTEGER to DATETIME
     ################################
@@ -319,9 +311,25 @@
     }
 
     ################################
-    #Add peer_type columns to SNS tables.
+    #Add columns to friends tale
+    ################################
+    add_column($af, 'AFuser_CORE_friends', 'af_type', "TEXT", "'Personal'");
+    add_column($af, 'AFuser_CORE_friends', 'flag', "TEXT", "NULL");
+
+    ################################
+    #Add columns to friendsfriends tale
+    ################################
+    add_column($af, 'AFuser_CORE_friendsfriends', 'af_type', "TEXT", "'Personal'");
+    add_column($af, 'AFuser_CORE_friendsfriends', 'flag', "TEXT", "NULL");
+
+    ################################
+    #Add peer_type columns to SNS sent_hs tables.
     ################################
     add_column($af, 'AFuser_SNS_tmp_sent_hs','peer_type',"TEXT", "'Personal'");
+
+    ################################
+    #Add peer_type columns to SNS recvd_hs tables.
+    ################################
     add_column($af, 'AFuser_SNS_tmp_recvd_hs','peer_type',"TEXT","'Personal'");
 
     ################################
@@ -380,7 +388,7 @@
     }
 
     ################################
-    #Add additional profile attribute to CORE_permission table
+    #Add additional profile attribute to CORE_profile_attr table
     ################################
     {
 	my $sth = do_SQL($af, "SELECT max(aid) from AFuser_CORE_prof_attr");
@@ -405,6 +413,13 @@
 	close(IN); 
     }
     
+    ############################
+    #Add columns attr64-65 to CORE_permission table
+    ############################
+#    for(my $i=64; $i<=65; $i++){
+#	add_column($af, "AFuser_CORE_permission",  "attr$i", "INT", "");
+#    }
+
     ################################
     #Add 'af_type' column into nghr_news table
     ################################


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