This Gist just contains all sorts of useful SQL snippets for local testing and/or development.
Last active
March 15, 2017 10:27
-
-
Save icedream/6c8365f7964cb66427c9d67ea371f002 to your computer and use it in GitHub Desktop.
Useful SQL snippets
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
-- Enable developer mode in D3 module connector which disables usage of TMP | |
UPDATE d3_cfg_mod | |
SET `OXVALUE` = TO_BASE64(IF(`OXVALUE` = '' OR `OXVALUE` = 'N%3B', | |
'O%3A8%3A%22stdClass%22%3A1%3A%7Bs%3A29%3A%22d3_cfg_mod__blClrTmp_notmpuse%22%3Bs%3A1%3A%221%22%3B%7D', | |
REPLACE(FROM_BASE64(`OXVALUE`), | |
'%22d3_cfg_mod__blClrTmp_notmpuse%22%3Bs%3A1%3A%220', | |
'%22d3_cfg_mod__blClrTmp_notmpuse%22%3Bs%3A1%3A%221') | |
)) | |
WHERE `OXMODID` = 'd3modcfg_lib'; |
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
-- Disable production mode in all shops for local testing | |
UPDATE oxshops | |
SET `OXPRODUCTIVE` = '0'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment