перенос V 1.51 на v2
Posted: Thu Jan 26, 2017 3:04 pm
Для начала, как сконвертировать бд для работы с новой версией?
почему? я переезжал без проблем, ну точнее с гемором в плане экспорт импорт, но там же можно и показы и клики тоже перенести, и вся статистика по тумбам будет, нечего не потеряешьmad wrote:с потерей ротации.
Code: Select all
/patch/domain.com/public_html/admin/includes/db_modules/mysql.php(89): db_error('SELECT gs.gal...', 1146, 'Table 'dbname...', 'ext_db_link')
#1 /patch/domain.com/public_html/admin/includes/libs/tpl_functions.php(0): db_query()
#2 /patch/domain.com/public_html/admin/includes/libs/tpl_functions.php(0): rot_get_item_execute_query('SELECT gs.gal...', Array, Array)
#3 /patch/domain.com/public_html/admin/includes/libs/tpl_functions.php(0): rot_get_items()
#4 /patch/domain.com/public_html/admin/tube/index.php(0): rot_create_page()
#5 /patch/domain.com/public_html/index.php(0): unknown()
#6 {main}
Mysql error:: 1146 (Table 'dbname.rot_thumbs' doesn't exist) (ext_db_link) in query SELECT gs.gallery_id, gs.thumb_id, gi.sponsor_id, gi.content_count, gi.content_type, gs.total_shows, gs.total_clicks, gs.total_ctr, gt.thumb_url, gd.*, gi.content_count, gi.crop_profile_id, gi.activation_date, gi.added_date, gi.duration, gi.url, gi.gallery_total_shows, gi.sponsor_id, gi.source_url, gi.custom_gallery FROM rot_gallery_stats11 as gs JOIN rot_gallery_data as gd on gd.gallery_id = gs.gallery_id
JOIN rot_gallery_info as gi on gi.gallery_id = gs.gallery_id JOIN rot_thumbs as gt on gt.thumb_id = gs.thumb_id
WHERE 1 = 1 AND gi.gallery_status = 'active' AND gi.gallery_type = 0 and gs.best_thumb = 'yes' and gs.group_id IN (1) ORDER BY tested_thumb DESC, gs.total_ctr DESC LIMIT 0, 80# queryitems. (domain.com)Поставил v2 рядом с 1.51 в другую директорию.admin wrote:А как у вас вообще получилось привязать 2 к 1.51 ?
Code: Select all
/patch/domain.com/public_html/scj/ - 1.51
/patch/domain.com/public_html/v2dir/ - v2