Oto kilka zapytań SQL, które pomogą Ci oczyścić dane:
Wyczyść wszystkie kategorie w OpenCart 3:
OBRÓĆ TABELĘ oc_category;OBRÓĆ TABELĘ oc_category_description;OBRÓĆ TABELĘ oc_category_filter;OBRÓĆ TABELĘ oc_category_path;OBRÓĆ TABELĘ oc_category_to_layout;OBRÓĆ TABELĘ oc_category_to_store;USUŃ Z oc_seo_url GDZIE zapytanie LIKE 'category_id=%' ;
USUŃ Z oc_seo_url GDZIE zapytanie LIKE 'category_id=%' ;
SET zagraniczne_klucze_checks = 0 ;SKRÓĆ TABELĘ oc_product;OBRÓĆ TABELĘ oc_product_attribute;OBRÓĆ TABELĘ oc_product_description;OBRÓĆ TABELĘ oc_product_discount;OBRÓĆ TABELĘ oc_product_image;OBRÓĆ TABELĘ oc_product_option;OBRÓĆ TABELĘ oc_product_option_value;OBRÓĆ TABELĘ oc_product_bound;OBRÓĆ TABELĘ oc_product_bound;SKRÓĆ TABELĘ oc_product_reward;OBRÓĆ TABELĘ oc_product_special;OBRÓĆ TABELĘ oc_product_to_category;OBRÓĆ TABELĘ oc_product_to_download;OBRÓĆ TABELĘ oc_product_to_layout;OBRÓĆ TABELĘ oc_product_to_store;SKRÓĆ TABELĘ oc_review;USUŃ Z oc_seo_url GDZIE zapytanie LIKE 'product_id=%' ;
Usuń tylko SEO URL z produktów:
USUŃ Z oc_seo_url GDZIE zapytanie LIKE 'product_id=%' ;
OBRÓĆ TABELĘ oc_attribute;OBRÓĆ TABELĘ oc_attribute_description;OBRÓĆ TABELĘ oc_attribute_group;OBRÓĆ TABELĘ oc_attribute_group_description;OBRÓĆ TABELĘ oc_product_attribute;
OBRÓĆ TABELĘ oc_option;OBRÓĆ TABELĘ oc_option_description;OBRÓĆ TABELĘ wartość_opcji;OBRÓĆ TABELĘ oc_option_value_description;OBRÓĆ TABELĘ oc_product_option;
SKRÓĆ TABELĘ oc_manufacturer;
SKRÓĆ TABELĘ oc_order;SKRÓĆ TABELĘ oc_order_history;OBRÓĆ TABELĘ oc_order_option;OBRÓĆ TABELĘ oc_order_product;OBRÓĆ TABELĘ oc_order_recurring;OBRÓĆ TABELĘ oc_order_recurring_transaction;OBRÓĆ TABELĘ oc_order_total;SKRÓĆ TABELĘ oc_order_voucher;
TRUNCATE oc_customer;TRUNCATE oc_customer_activity;TRUNCATE oc_customer_history;TRUNCATE oc_customer_login;TRUNCATE oc_customer_ip;TRUNCATE oc_customer_online;TRUNCATE oc_customer_reward;TRUNCATE oc_customer_transaction;TRUNCATE oc_customer_search;TRUNCATE oc_customer_wishlist;TRUNCATE oc_custom_field;TRUNCATE oc_custom_field_customer_group;TRUNCATE oc_custom_field_description;TRUNCATE oc_custom_field_value;TRUNCATE oc_custom_field_value_description;