如何从Prestashop 1.6迁移到Prestashop 1.5?

时间:2015-04-13 03:45:09

标签: prestashop database-schema prestashop-1.6 prestashop-1.5 downgrade

嗯我有一个很好的主题Prestashop 1.5和一个在Prestashop 1.6中运行的商店,所以我想从1.6版本迁移到1.5版本。

我可以迁移而不会丢失任何数据以及如何操作吗?我用Google搜索了,但没有任何帮助。

3 个答案:

答案 0 :(得分:0)

据我所知,在1.5到1.6 PS版本之间,任何数据库都会发生变化,例如1.4到1.5。所以在我看来你可以很容易地做到这一点。尝试将数据表导入到新的1.5

答案 1 :(得分:0)

您好,数据库架构中有一些从1.5到1.6的更新。如果要导入SQL数据,则应检查/install/upgrade/sql/中的sql升级文件(检查1.6版本到1.5版本的所有文件)。你将能够找到差异甚至创造一个与之相反的新剧本。

如果您有任何问题,请随时提出。

答案 2 :(得分:0)

此升级或数据迁移到Prestashop 1.7的步骤如下: 重新安装Prestashop 1.7 备份提供与产品,客户和订单相关的PS 1.6表(即:ps_product_17) 修改这些表,使它们具有与PS 1.7相同的结构(下面的详细修改) 选项1:

4)Sql导出数据最初是1.6版本,现在修改为带有数据的1.7 5)将以前的数据插入到PS 1.7表中 选项2(仅当在同一数据库上工作时):

4)重命名原PS 1.7。表格(即:ps_product_ORIGINAL) 5)将修改后的1.6表重命名为1.7原始表(即:ps_product_17到ps_product) 6)检查商店和数据访问

7)将产品图像文件夹“img / p”从PS 1.6安装复制到PS 1.7安装文件夹

作为参考比较表之间版本的版本的SQL安装文件可以从goo.gl/WPM37D下载

注意:下面详述的SQL指令仅适用于第一个表“_product”,仅仅是指南,表名和/或前缀可能因情况而异。其余的sql可以通过将语法作为参考来添加和重命名字段来编写。

产品

表“_product”  新领域isbn(在ean13之后):  ALTER TABLE _product ADD isbn varchar(13)在ean13之后的默认空白

新字段show_condition(在available_date之后):  ALTER TABLE _product ADD show_condition tinyint(1)NOT NULL DEFAULT'0'ABLE available_date

新字段状态(final de TABLE):  ALTER TABLE _product ADD state int(11)unsigned NOT NULL DEFAULT'1'

重命名字段id_product_redirected(现在为id_type_redirected):  ALTER TABLE _product CHANGE id_product_redirected id_type_redirected int(10);

表“_product_shop” 新字段(在available_date之后):show_condition tinyint(1)NOT NULL DEFAULT'0',重命名字段:“id_product_redirected”现在是id_type_redirected

表“_product_attribute” 新字段(在ean13之后):isbn varchar(13)DEFAULT NULL, 倒数第二个和最后一个字段的变化: default_on tinyint(1)unsigned NULL DEFAULT NULL, available_date日期DEFAULT NULL,

表“_product_attribute_shop” 新字段(在id_product_attribute之前):id_product int(10)unsigned NOT NULL, 倒数第二个和最后一个字段的变化: default_on tinyint(1)unsigned NULL DEFAULT NULL, available_date日期DEFAULT NULL, 新钥匙: 独特的钥匙id_productid_productid_shopdefault_on

表“_product_download”  独特的钥匙id_productid_product

表“_product_tag” 新字段(在TABLE的末尾):id_lang int(10)unsigned NOT NULL,新密钥:KEY id_langid_langid_tag

表“_specific_price”  键id_product_attributeid_product_attribute),键id_shopid_shop),键id_customerid_customer),键from({ {1}}),键fromto),独特键toid_product_2id_productid_product_attribute,{{1} },id_customerid_cartfromtoid_shopid_shop_groupid_currencyid_countryid_group

表“_image_shop” 新字段(在TABLE的开头):from_quantity int(10)unsigned NOT NULL,Keys:PRIMARY KEY(id_specific_price_ruleid_product),UNIQUE KEY id_image({ {1}},id_shopid_product),键id_productid_shop

表“_category” 键:键coverid_shop),键id_shopcategory_parentid_parentnleftrightactive),键nleft({ {1}}),键nrightactive),键level_depthlevel_depthnright),键nright({{1 }},activenleft

客户

表“_customer” 长度字段从32更改为60:active varchar(60)NOT NULL, 新字段(在TABLE的末尾):nleft varchar(40)DEFAULT NULL,activenright datetime DEFAULT NULL,

订单

表“_orders” 新字段(在round_mode之后):active tinyint(1)NOT NULL DEFAULT'1',

表“_order_invoice”  新字段(在total_wrapping_tax_inc之后):nright文本DEFAULT NULL, 将十进制字段从(17,2)更改为(20,6)

表“_order_detail” 新字段(在product_attribute_id之后):passwd int(10)无符号DEFAULT 0,新字段(在ean13之后):reset_password_token varchar(13)DEFAULT NULL,新字段(在表的末尾):{ {1}} DECIMAL(20,6)NOT NULL DEFAULT'0.000000',

相关问题