- Timestamp:
- 12/17/10 08:48:36 (17 months ago)
- Location:
- branches/1.5/install
- Files:
-
- 2 modified
-
index.php (modified) (1 diff)
-
install_tables.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.5/install/index.php
r2295 r2303 499 499 } else { 500 500 501 $tables = array('blocked', 'categories', 'comments', ' friends', 'messaging', 'miscdata', 'plugins', 'pluginhooks', 'pluginsettings', 'posts', 'postmeta', 'postvotes', 'settings', 'tags', 'tempdata', 'tokens', 'users', 'usermeta', 'useractivity', 'widgets');501 $tables = array('blocked', 'categories', 'comments', 'messaging', 'miscdata', 'plugins', 'pluginhooks', 'pluginsettings', 'posts', 'postmeta', 'postvotes', 'settings', 'tags', 'tempdata', 'tokens', 'users', 'usermeta', 'useractivity', 'widgets'); 502 502 503 503 // delete *all* tables in db: -
branches/1.5/install/install_tables.php
r2267 r2303 112 112 $db->query($sql); 113 113 } 114 115 116 // FRIENDS TABLE117 118 if ($table_name == "friends") {119 //echo "table doesn't exist. Stopping before creation."; exit;120 $sql = "CREATE TABLE `" . DB_PREFIX . $table_name . "` (121 `follower_user_id` int(20) NOT NULL default '0',122 `following_user_id` int(20) NOT NULL default '0',123 `friends_updatedts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,124 PRIMARY KEY (follower_user_id, following_user_id)125 ) ENGINE=" . DB_ENGINE . " DEFAULT CHARSET=" . DB_CHARSET . " COLLATE=" . DB_COLLATE . " COMMENT='Friends';";126 echo $lang['install_step2_creating_table'] . ": '" . DB_PREFIX . $table_name . "'...<br />\n";127 $db->query($sql);128 }129 114 130 115