Jump to content

Recommended Posts

He actualizado a 1.3.1 y me ha dado el siguiente error sql:


SET NAMES 'utf8'

SET NAMES 'utf8'

SET NAMES 'utf8'

/* ##################################### */ /* STRUCTURE */ /* ##################################### */ ALTER TABLE `gst_product` CHANGE `reduction_from` `reduction_from` DATE NOT NULL DEFAULT '1970-01-01', CHANGE `reduction_to` `reduction_to` DATE NOT NULL DEFAULT '1970-01-01'

ALTER TABLE `gst_order_detail` CHANGE `tax_rate` `tax_rate` DECIMAL(10, 3) NOT NULL DEFAULT '0.000'

ALTER TABLE `gst_group` ADD `price_display_method` TINYINT NOT NULL DEFAULT 0 AFTER `reduction`

CREATE TABLE `gst_carrier_group` ( `id_carrier` int(10) unsigned NOT NULL, `id_group` int(10) unsigned NOT NULL, UNIQUE KEY `id_carrier` (`id_carrier`,`id_group`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8

ALTER TABLE `gst_country` ADD `need_identification_number` TINYINT( 1 ) NOT NULL

ALTER TABLE `gst_customer` ADD `dni` VARCHAR( 16 ) NULL AFTER `firstname`

(1060) Duplicate column name 'dni'
ALTER TABLE `gst_image` ADD INDEX `product_position` (`id_product`, `position`)

ALTER TABLE `gst_hook_module` ADD INDEX `id_module` (`id_module`)

ALTER TABLE `gst_customer` ADD INDEX `id_customer_passwd` (`id_customer`, `passwd`)

ALTER TABLE `gst_tag` ADD INDEX `id_lang` (`id_lang`)

ALTER TABLE `gst_customer_group` ADD INDEX `id_customer` (`id_customer`)

ALTER TABLE `gst_category_group` ADD INDEX `id_category` (`id_category`)

ALTER TABLE `gst_image` ADD INDEX `id_product_cover` (`id_product`, `cover`)

ALTER TABLE `gst_employee` ADD INDEX `id_employee_passwd` (`id_employee`, `passwd`)

ALTER TABLE `gst_product_attribute` ADD INDEX `product_default` (`id_product`, `default_on`)

ALTER TABLE `gst_product_download` ADD INDEX `product_active` (`id_product`, `active`)

ALTER TABLE `gst_tab` ADD INDEX `class_name` (`class_name`)

ALTER TABLE `gst_module_currency` ADD INDEX `id_module` (`id_module`)

ALTER TABLE `gst_product_attribute_combination` ADD INDEX `id_product_attribute` (`id_product_attribute`)

ALTER TABLE `gst_orders` ADD INDEX `invoice_number` (`invoice_number`)

ALTER TABLE `gst_product_tag` ADD INDEX `id_tag` (`id_tag`)

ALTER TABLE `gst_cms_lang` CHANGE `id_cms` `id_cms` INT(10) UNSIGNED NOT NULL

ALTER TABLE `gst_tax` CHANGE `rate` `rate` DECIMAL(10, 3) NOT NULL

ALTER TABLE `gst_order_detail` ADD `discount_quantity_applied` TINYINT(1) NOT NULL DEFAULT 0 AFTER `ecotax`

ALTER TABLE `gst_orders` ADD `total_products_wt` DECIMAL(10, 2) NOT NULL AFTER `total_products`

----continua en el siguiente post-----

Link to comment
Share on other sites

/* ##################################### */ /* CONTENTS */ /* ##################################### */ UPDATE `gst_group` SET `price_display_method` = (SELECT `value` FROM `gst_configuration` WHERE `name` = 'PS_PRICE_DISPLAY')

UPDATE `gst_configuration` SET `value` = ROUND(value / (1 + ( SELECT rate FROM ( SELECT t.`rate`, COUNT(*) n FROM `gst_orders` o LEFT JOIN `gst_carrier` c ON (o.`id_carrier` = c.`id_carrier`) LEFT JOIN `gst_tax` t ON (t.`id_tax` = c.`id_tax`) WHERE c.`deleted` = 0 AND c.`shipping_handling` = 1 GROUP BY o.`id_carrier` ORDER BY n DESC LIMIT 1 ) myrate ) / 100), 6) WHERE `name` = 'PS_SHIPPING_HANDLING'

DELETE FROM `gst_configuration` WHERE `name` = 'PS_PRICE_DISPLAY'

DELETE FROM `gst_product_attachment` WHERE `id_product` NOT IN (SELECT `id_product` FROM `gst_product`)

DELETE FROM `gst_discount_quantity` WHERE `id_product` NOT IN (SELECT `id_product` FROM `gst_product`)

DELETE FROM `gst_pack` WHERE `id_product_pack` NOT IN (SELECT `id_product` FROM `gst_product`) OR `id_product_item` NOT IN (SELECT `id_product` FROM `gst_product`)

DELETE FROM `gst_product_sale` WHERE `id_product` NOT IN (SELECT `id_product` FROM `gst_product`)

DELETE FROM `gst_scene_products` WHERE `id_product` NOT IN (SELECT `id_product` FROM `gst_product`)

DELETE FROM `gst_search_index` WHERE `id_product` NOT IN (SELECT `id_product` FROM `gst_product`)

DELETE FROM `gst_search_word` WHERE `id_word` NOT IN (SELECT `id_word` FROM `gst_search_index`)

DELETE FROM `gst_tag` WHERE `id_lang` NOT IN (SELECT `id_lang` FROM `gst_lang`)

DELETE FROM `gst_search_word` WHERE `id_lang` NOT IN (SELECT `id_lang` FROM `gst_lang`)

INSERT INTO `gst_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES ('PRESTASTORE_LIVE', 1, NOW(), NOW()), ('PS_SHOW_ALL_MODULES', 0, NOW(), NOW()), ('PS_BACKUP_ALL', 0, NOW(), NOW()), ('PS_1_3_UPDATE_DATE', NOW(), NOW(), NOW()), ('PS_PRICE_ROUND_MODE', 2, NOW(), NOW())

INSERT INTO `gst_hook` (`name`, `title`, `description`, `position`) VALUES ('createAccountTop', 'Block above the form for create an account', NULL , '1'), ('backOfficeHeader', 'Administration panel header', NULL , '0'), ('backOfficeTop', 'Administration panel top hover the tabs', NULL , '1'), ('backOfficeFooter', 'Administration panel footer', NULL , '1')

INSERT INTO `gst_carrier_group` (id_carrier, id_group) (SELECT id_carrier, id_group FROM gst_carrier c, gst_group g WHERE c.active = 1)

/* PHP */ /* PHP:convert_product_price(); */

SET NAMES 'utf8'

ALTER TABLE `gst_order_detail` ADD INDEX `id_order_id_order_detail` (`id_order`, `id_order_detail`)

ALTER TABLE `gst_category_group` ADD INDEX `id_group` (`id_group`)

ALTER TABLE `gst_product` ADD INDEX `date_add` (`date_add`)

SET NAMES 'utf8'

/* ##################################### */ /* STRUCTURE */ /* ##################################### */ ALTER TABLE `gst_product_attachment` CHANGE `id_product` `id_product` INT(10) UNSIGNED NOT NULL, CHANGE `id_attachment` `id_attachment` INT(10) UNSIGNED NOT NULL

ALTER TABLE `gst_attribute_impact` CHANGE `id_product` `id_product` INT(11) UNSIGNED NOT NULL, CHANGE `id_attribute` `id_attribute` INT(11) UNSIGNED NOT NULL

ALTER TABLE `gst_block_cms` CHANGE `id_block` `id_block` INT(10) UNSIGNED NOT NULL, CHANGE `id_cms` `id_cms` INT(10) UNSIGNED NOT NULL

ALTER TABLE `gst_customization` CHANGE `id_cart` `id_cart` int(10) unsigned NOT NULL, CHANGE `id_product_attribute` `id_product_attribute` int(10) unsigned NOT NULL default '0'

ALTER TABLE `gst_customization_fie

------fin------

Alguien puede orientarme para hacer los retoques necesarios en donde sea necesario?

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...