LayZee

SQL fix for dimensions

May 28th, 2013
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.54 KB | None | 0 0
  1. SELECT CONCAT('UPDATE ', TABLE_NAME, ' SET ', column_name,  ' = REPLACE(`', column_name,  '`, ''twilight_forest'', ''DIM7'');' )
  2. FROM information_schema.COLUMNS
  3. WHERE TABLE_NAME
  4. IN ('TOWNY_NATIONS',  'TOWNY_RESIDENTS',  'TOWNY_TOWNBLOCKS',  'TOWNY_TOWNS',  'TOWNY_WORLDS');
  5.  
  6. SELECT CONCAT('UPDATE ', TABLE_NAME, ' SET ', column_name,  ' = REPLACE(`', column_name,  '`, ''world_nether'', ''DIM-1'');' )
  7. FROM information_schema.COLUMNS
  8. WHERE TABLE_NAME
  9. IN ('TOWNY_NATIONS',  'TOWNY_RESIDENTS',  'TOWNY_TOWNBLOCKS',  'TOWNY_TOWNS',  'TOWNY_WORLDS');
Advertisement
Add Comment
Please, Sign In to add comment