mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 14:23:57 -07:00
r419
Предотвращение ошибки #001690 BIGINT UNSIGNED value is out of range, проявляющейся в MySQL 5.5 (http://torrentpier.me/threads/498/). git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@419 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
parent
8fc8a331a9
commit
07492c76cd
2 changed files with 5 additions and 2 deletions
|
@ -56,8 +56,8 @@ $domain_name = (!empty($_SERVER['SERVER_NAME'])) ? $_SERVER['SERVER_NAME'] : $do
|
|||
|
||||
// Increase number of revision after update
|
||||
$bb_cfg['tp_version'] = '2.5 Beta';
|
||||
$bb_cfg['tp_release_state'] = 'R418';
|
||||
$bb_cfg['tp_release_date'] = '18-05-2012';
|
||||
$bb_cfg['tp_release_state'] = 'R419';
|
||||
$bb_cfg['tp_release_date'] = '21-05-2012';
|
||||
|
||||
// Database
|
||||
$charset = 'utf8';
|
||||
|
|
|
@ -68,6 +68,9 @@ function sync ($type, $id)
|
|||
|
||||
$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("
|
||||
CREATE TEMPORARY TABLE $tmp_sync_topics (
|
||||
topic_id MEDIUMINT UNSIGNED NOT NULL DEFAULT '0',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue