Hey, wollte eben wie in der Anleitung bei Shopware beschrieben, alle eingefügten Artikel in der Datenbank mit dem Befehl löschen:
TRUNCATE s_addon_premiums
;
TRUNCATE s_articles
;
TRUNCATE s_articles_also_bought_ro
;
TRUNCATE s_articles_attributes
;
TRUNCATE s_articles_avoid_customergroups
;
TRUNCATE s_articles_categories
;
TRUNCATE s_articles_categories_ro
;
TRUNCATE s_articles_categories_seo
;
TRUNCATE s_articles_details
;
TRUNCATE s_articles_downloads
;
TRUNCATE s_articles_downloads_attributes
;
TRUNCATE s_articles_esd
;
TRUNCATE s_articles_esd_attributes
;
TRUNCATE s_articles_esd_serials
;
TRUNCATE s_articles_img
;
TRUNCATE s_articles_img_attributes
;
TRUNCATE s_articles_information
;
TRUNCATE s_articles_information_attributes
;
TRUNCATE s_articles_notification
;
TRUNCATE s_articles_prices
;
TRUNCATE s_articles_prices_attributes
;
TRUNCATE s_articles_relationships
;
TRUNCATE s_articles_similar
;
TRUNCATE s_articles_similar_shown_ro
;
TRUNCATE s_articles_supplier
;
TRUNCATE s_articles_supplier_attributes
;
TRUNCATE s_articles_top_seller_ro
;
TRUNCATE s_articles_translations
;
TRUNCATE s_articles_vote
;
TRUNCATE s_article_configurator_dependencies
;
TRUNCATE s_article_configurator_groups
;
TRUNCATE s_article_configurator_options
;
TRUNCATE s_article_configurator_option_relations
;
TRUNCATE s_article_configurator_price_variations
;
TRUNCATE s_article_configurator_sets
;
TRUNCATE s_article_configurator_set_group_relations
;
TRUNCATE s_article_configurator_set_option_relations
;
TRUNCATE s_article_configurator_templates
;
TRUNCATE s_article_configurator_templates_attributes
;
TRUNCATE s_article_configurator_template_prices
;
TRUNCATE s_article_configurator_template_prices_attributes
;
TRUNCATE s_article_img_mappings
;
TRUNCATE s_article_img_mapping_rules
;
TRUNCATE s_filter_articles
;
Bekomme dann leider folgende Fehlermeldung:
Fehler
SQL-Befehl:
TRUNCATE s_articles
;
#1701 - Cannot truncate a table referenced in a foreign key constraint (
benny07_misssex.
s_articles_attributes, CONSTRAINT
s_articles_attributes_ibfk_1 FOREIGN KEY (
articleID) REFERENCES
benny07_misssex.
s_articles (
id))