mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 06:13:58 -07:00
r431
Убираем баг с вынесением постов из топика. git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@431 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
parent
174278b1fa
commit
1b61eabf8e
2 changed files with 6 additions and 5 deletions
|
@ -56,8 +56,8 @@ $domain_name = (!empty($_SERVER['SERVER_NAME'])) ? $_SERVER['SERVER_NAME'] : $do
|
||||||
|
|
||||||
// Increase number of revision after update
|
// Increase number of revision after update
|
||||||
$bb_cfg['tp_version'] = '2.5 Beta';
|
$bb_cfg['tp_version'] = '2.5 Beta';
|
||||||
$bb_cfg['tp_release_state'] = 'R430';
|
$bb_cfg['tp_release_state'] = 'R431';
|
||||||
$bb_cfg['tp_release_date'] = '04-06-2012';
|
$bb_cfg['tp_release_date'] = '05-06-2012';
|
||||||
|
|
||||||
// Database
|
// Database
|
||||||
$charset = 'utf8';
|
$charset = 'utf8';
|
||||||
|
|
|
@ -68,9 +68,6 @@ function sync ($type, $id)
|
||||||
|
|
||||||
$tmp_sync_topics = 'tmp_sync_topics';
|
$tmp_sync_topics = 'tmp_sync_topics';
|
||||||
|
|
||||||
// Проверка на остаточные записи об уже удаленных топиках (критично в MySQL 5.5)
|
|
||||||
DB()->query("DELETE FROM ". BB_TOPICS ." WHERE topic_first_post_id NOT IN (SELECT post_id FROM ". BB_POSTS .")");
|
|
||||||
|
|
||||||
DB()->query("
|
DB()->query("
|
||||||
CREATE TEMPORARY TABLE $tmp_sync_topics (
|
CREATE TEMPORARY TABLE $tmp_sync_topics (
|
||||||
topic_id MEDIUMINT UNSIGNED NOT NULL DEFAULT '0',
|
topic_id MEDIUMINT UNSIGNED NOT NULL DEFAULT '0',
|
||||||
|
@ -128,7 +125,11 @@ function sync ($type, $id)
|
||||||
}
|
}
|
||||||
|
|
||||||
DB()->query("DROP TEMPORARY TABLE $tmp_sync_topics");
|
DB()->query("DROP TEMPORARY TABLE $tmp_sync_topics");
|
||||||
|
|
||||||
|
// Проверка на остаточные записи об уже удаленных топиках (критично в MySQL 5.5)
|
||||||
|
DB()->query("DELETE FROM ". BB_TOPICS ." WHERE topic_first_post_id NOT IN (SELECT post_id FROM ". BB_POSTS .")");
|
||||||
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'user_posts':
|
case 'user_posts':
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue