Skip to content

Instantly share code, notes, and snippets.

@ipascual
ipascual / magento2 - delete invoices
Created March 19, 2018 22:36
magento2 - delete invoices SQL
fromInvoiceId = 418
fromOrderId = 371
DELETE FROM sales_invoice WHERE entity_id >= 418;
ALTER TABLE sales_invoice AUTO_INCREMENT = 418;
DELETE FROM sales_invoice_grid WHERE entity_id >= 418;
ALTER TABLE sales_invoice_grid AUTO_INCREMENT = 418;
DELETE FROM sales_invoice_item WHERE parent_id >= 418;
@ipascual
ipascual / magento2 - docker metrics
Created April 3, 2018 17:46
magento2 - docker metrics
# Commands
```
1) rm -rf pub/static/* generated/* var/view_preprocessed var/cache var/page_cache
2) Admin > Catalog > Products
3) Admin > Catalog > Products
4) Admin > Stores > Configuration
5) Admin > Stores > Configuration
```
# Metrics