Skip to content

Instantly share code, notes, and snippets.

@btmash
Created April 8, 2017 21:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save btmash/a72759bc1476d32a6cc66f8e348f9526 to your computer and use it in GitHub Desktop.
Save btmash/a72759bc1476d32a6cc66f8e348f9526 to your computer and use it in GitHub Desktop.
Things I could fix via sql to get the site to show up properly.
update node__body set body_format = 'basic_html' WHERE body_format = 'filtered_html';
update node_revision__body set body_format = 'basic_html' WHERE body_format = 'filtered_html';
update node__body SET body_value = REPLACE(body_value, '<pre>', '');
update node_revision__body SET body_value = REPLACE(body_value, '<pre>', '');
update node__body SET body_value = REPLACE(body_value, '</pre>', '');
update node_revision__body SET body_value = REPLACE(body_value, '</pre>', '');
update node__body SET body_value = REPLACE(body_value, '<code', '<pre><code');
update node_revision__body SET body_value = REPLACE(body_value, '<code', '<pre><code');
update node__body SET body_value = REPLACE(body_value, '</code></pre>', '</code>');
update node_revision__body SET body_value = REPLACE(body_value, '</code></pre>', '</code>');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment