Jump to content

(已解决)如何清空测试数据


Recommended Posts

安装后,删除sample data或reset整个系统,可以使用一个prestastore的收费模块terminator。

另外,如不需要,可以在安装时选择不导入sample data。

Share this post


Link to post
Share on other sites
  • 1 month later...

清理customer, order相关表数据脚本

TRUNCATE TABLE `ps_customer`;   
TRUNCATE TABLE `ps_address`;   
TRUNCATE TABLE `ps_orders`;   
TRUNCATE TABLE `ps_order_detail`;   
TRUNCATE TABLE `ps_order_discount`;   
TRUNCATE TABLE `ps_order_history`;   
TRUNCATE TABLE `ps_message`;   
TRUNCATE TABLE `ps_cart`;   
TRUNCATE TABLE `ps_cart_product`;   
TRUNCATE TABLE `ps_cart_discount`;  

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More