Категории |
Обновление БД с одновременным переносом с localhost на серверОпытные спецы, помогите младшим товарищам! базу тоже нужно обновлять Евгений! Тут http://www.shopos.ru/patches/ скачивайте - Обновление 2.4.5 -> 2.5.0 выполнить следующие запросы в phpmyadmin ALTER TABLE os_admin_access DROP cip_manager; ALTER TABLE os_admin_access DROP orders_send; ALTER TABLE os_admin_access DROP themes_admin; ALTER TABLE os_admin_access DROP module_edit; ALTER TABLE os_admin_access DROP module_export; ALTER TABLE os_admin_access ADD stats_stock_warning INT( 1 ) NOT NULL ; UPDATE os_admin_access SET stats_stock_warning = 1 WHERE customers_id = 1 LIMIT 1; ALTER TABLE os_admin_access ADD plugins INT( 1 ) NOT NULL ; UPDATE os_admin_access SET plugins = 1 WHERE customers_id = 1 LIMIT 1; CREATE TABLE os_plugins ( plugins_id int NOT NULL auto_increment, plugins_key varchar(64) NOT NULL, plugins_name varchar(64) NOT NULL, plugins_value varchar(255) NOT NULL, sort_order int(5) NULL, sort_plugins int(5) NULL, use_function varchar(255) NULL, PRIMARY KEY (plugins_id) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE utf8_general_ci; ALTER TABLE os_admin_access ADD products_expected INT( 1 ) NOT NULL ; UPDATE os_admin_access SET products_expected = 1 WHERE customers_id = 1 LIMIT 1; DROP TABLE IF EXISTS os_cip; DROP TABLE IF EXISTS os_cip_depend; ALTER TABLE os_faq ADD faq_page_url VARCHAR(256) NOT NULL; DELETE FROM os_configuration WHERE configuration_group_id=16; INSERT INTO os_configuration (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('DISPLAY_DB_QUERY', 'false', 10, 6, NULL, '', NULL, 'os_cfg_select_option(array(\'true\', \'false\'),'); INSERT INTO os_configuration (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('DB_CACHE_PRO', 'true', 11, 7, NULL, '', NULL, 'os_cfg_select_option(array(\'true\', \'false\'),'); INSERT INTO os_configuration (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('SET_WHOS_ONLINE', 'false', '17', '18', NULL, '0000-00-00 00:00:00', NULL, 'os_cfg_select_option(array(\'true\', \'false\'),'); INSERT INTO os_configuration (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('VIS_BANNER', 'false', 30, 32, NULL, '', NULL, 'os_cfg_select_option(array(\'true\', \'false\'),'); DELETE FROM `os_configuration_group` WHERE `configuration_group_id` = 25 LIMIT 1; |
|