Last active
November 8, 2017 19:16
-
-
Save ashsmith/4279368 to your computer and use it in GitHub Desktop.
Magento: Update Order Numbers SQL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Update Order increment id to start at 123456789 | |
UPDATE `eav_entity_store` SET `increment_last_id` = '123456789' WHERE `entity_type_id` = '5';` | |
-- Update Invoice increment id to start at 123456789 | |
UPDATE `eav_entity_store` SET `increment_last_id` = '123456789' WHERE `entity_type_id` = '6'; | |
-- Update Credit Memo increment id to start at 123456789 | |
UPDATE `eav_entity_store` SET `increment_last_id` = '123456789' WHERE `entity_type_id` = '7'; | |
-- Update Shipment increment id to start at 123456789 | |
UPDATE `eav_entity_store` SET `increment_last_id` = '123456789' WHERE `entity_type_id` = '8'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Update Order increment id to start at 012345678 | |
UPDATE `eav_entity_store` SET `increment_last_id` = '012345678', `increment_prefix` = '0' WHERE `entity_type_id` = '5'; | |
-- Update Invoice increment id to start at 012345678 | |
UPDATE `eav_entity_store` SET `increment_last_id` = '012345678', `increment_prefix` = '0' WHERE `entity_type_id` = '6'; | |
-- Update Credit Memo increment id to start at 012345678 | |
UPDATE `eav_entity_store` SET `increment_last_id` = '012345678', `increment_prefix` = '0' WHERE `entity_type_id` = '7'; | |
-- Update Shipment increment id to start at 012345678 | |
UPDATE `eav_entity_store` SET `increment_last_id` = '012345678', `increment_prefix` = '0' WHERE `entity_type_id` = '8'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment