- Timestamp:
- 12/18/10 10:30:19 (17 months ago)
- Location:
- branches/1.5
- Files:
-
- 4 modified
-
install/install-upgrade.php (modified) (2 diffs)
-
libs/Caching.php (modified) (3 diffs)
-
libs/Comment.php (modified) (1 diff)
-
libs/Initialize.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.5/install/install-upgrade.php
r2277 r2309 239 239 240 240 // get old cvote data 241 $sql = "SELECT * FROM " . TABLE_COMMENTVOTES;241 $sql = "SELECT * FROM ".DB_PREFIX . "commentvotes"; 242 242 $old_cvotes = $h->db->get_results($h->db->prepare($sql)); 243 243 if ($old_cvotes) { … … 251 251 252 252 // drop old commentvotes table 253 $h->db->query("DROP TABLE " . TABLE_COMMENTVOTES);253 $h->db->query("DROP TABLE ".DB_PREFIX."commentvotes"); 254 254 255 255 // rename new table -
branches/1.5/libs/Caching.php
r2166 r2309 207 207 break; 208 208 case 'commentvotes': 209 $sql = "SELECT cvote_updatedts FROM ". TABLE_COMMENTVOTES."ORDER BY cvote_updatedts DESC LIMIT 1";209 $sql = "SELECT cvote_updatedts FROM ".DB_PREFIX."commentvotes ORDER BY cvote_updatedts DESC LIMIT 1"; 210 210 break; 211 211 case 'users': … … 213 213 break; 214 214 case 'useractivity': 215 $sql = "SELECT useract_updatedts FROM ". TABLE_USERACTIVITY."ORDER BY useract_updatedts DESC LIMIT 1";215 $sql = "SELECT useract_updatedts FROM ".DB_PREFIX."useractivity ORDER BY useract_updatedts DESC LIMIT 1"; 216 216 break; 217 217 case 'usermeta': … … 225 225 break; 226 226 case 'friends': 227 $sql = "SELECT friends_updatedts FROM ". TABLE_FRIENDS."ORDER BY friends_updatedts DESC LIMIT 1";227 $sql = "SELECT friends_updatedts FROM ".DB_PREFIX."friends ORDER BY friends_updatedts DESC LIMIT 1"; 228 228 break; 229 229 default: -
branches/1.5/libs/Comment.php
r2292 r2309 352 352 353 353 // delete any votes for this comment 354 $sql = "DELETE FROM ". TABLE_COMMENTVOTES."WHERE cvote_comment_id = %d";354 $sql = "DELETE FROM ".DB_PREFIX."commentvotes WHERE cvote_comment_id = %d"; 355 355 $h->db->query($h->db->prepare($sql, $this->id)); 356 356 -
branches/1.5/libs/Initialize.php
r2292 r2309 115 115 'TABLE_CATEGORIES' => 'categories', 116 116 'TABLE_COMMENTS' => 'comments', 117 'TABLE_FRIENDS' => 'friends',118 'TABLE_MESSAGING' => 'messaging',119 117 'TABLE_MISCDATA' => 'miscdata', 120 118 'TABLE_PLUGINS' => 'plugins', … … 122 120 'TABLE_PLUGINSETTINGS' => 'pluginsettings', 123 121 'TABLE_POSTS' => 'posts', 124 'TABLE_POSTMETA' => 'postmeta',125 122 'TABLE_POSTVOTES' => 'postvotes', 126 123 'TABLE_SETTINGS' => 'settings', … … 129 126 'TABLE_USERS' => 'users', 130 127 'TABLE_USERMETA' => 'usermeta', 131 'TABLE_USERACTIVITY' => 'useractivity',132 128 'TABLE_WIDGETS' => 'widgets', 133 129 'TABLE_TOKENS' => 'tokens'