Skip to content

Instantly share code, notes, and snippets.

@kathangeorg
Created September 16, 2012 20:27
Show Gist options
  • Save kathangeorg/3734253 to your computer and use it in GitHub Desktop.
Save kathangeorg/3734253 to your computer and use it in GitHub Desktop.
FLUX Bug after Page Copy
###########
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