Created
September 16, 2012 20:27
-
-
Save kathangeorg/3734253 to your computer and use it in GitHub Desktop.
FLUX Bug after Page Copy
This file contains hidden or 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
########### | |
WORKING below | |
########## | |
## DO NOT ## | |
UPDATE tt_content | |
SET tx_flux_parent = SUBSTRING(tx_flux_column, INSTR(tx_flux_column, ':') + 1) | |
WHERE tx_flux_column != "" AND tx_flux_column IS NOT NULL AND tx_flux_parent IS NULL AND uid = 27 | |
####################### | |
# After Page Copy!! | |
UPDATE tt_content | |
SET tx_flux_column = CONCAT(SUBSTRING_INDEX(tx_flux_column, ':' , 1),':',tx_flux_parent) | |
WHERE tx_flux_column IS NOT NULL | |
AND tx_flux_parent IS NOT NULL | |
AND tx_flux_parent != 0 | |
AND PID = 29; | |
####################### | |
## UPDATE tx_flux_parent after flux extension update### | |
UPDATE tt_content | |
SET tx_flux_parent = SUBSTRING(tx_flux_column, INSTR(tx_flux_column, ':') + 1) | |
WHERE tx_flux_column != "" AND tx_flux_column IS NOT NULL AND tx_flux_parent IS NOT NULL AND tx_flux_parent != 0 AND pid = 28 | |
## WORKS ## | |
SELECT uid,pid,tx_flux_column,tx_flux_parent FROM tt_content WHERE tx_flux_column != "" AND tx_flux_column IS NOT NULL AND tx_flux_parent IS NULL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment