-- Quitar el prefijo `home_` de las tablas del portal (2026-07-15). APLICADO EN PROD.
--
-- El prefijo venía del nombre de la app Django (`home`), jubilada y borrada ese
-- mismo día. La BD se sigue llamando `django_wow` por historia.
--
-- Va en UNA sola sentencia a propósito: RENAME TABLE con varias tablas es
-- atómico, así que o cambian las 41 o no cambia ninguna. MySQL reajusta solo
-- las claves ajenas que apuntaban a los nombres viejos.
--
-- Se comprobó antes: 0 colisiones, 0 palabras reservadas, sin vistas ni triggers.

RENAME TABLE `home_accountactivation` TO `accountactivation`,
  `home_api_points` TO `api_points`,
  `home_category` TO `category`,
  `home_changefactionprice` TO `changefactionprice`,
  `home_changeraceprice` TO `changeraceprice`,
  `home_claimedreward` TO `claimedreward`,
  `home_clientecategoria` TO `clientecategoria`,
  `home_contentcreator` TO `contentcreator`,
  `home_customizeprice` TO `customizeprice`,
  `home_downloadclientpage` TO `downloadclientpage`,
  `home_goldprice` TO `goldprice`,
  `home_guildrenamesettings` TO `guildrenamesettings`,
  `home_item` TO `item`,
  `home_item_data` TO `item_data`,
  `home_itemsearchhistory` TO `itemsearchhistory`,
  `home_levelupprice` TO `levelupprice`,
  `home_loginattempt` TO `loginattempt`,
  `home_maintenancemode` TO `maintenancemode`,
  `home_noticia` TO `noticia`,
  `home_passwordreset` TO `passwordreset`,
  `home_pedido` TO `pedido`,
  `home_promocode` TO `promocode`,
  `home_promoredemption` TO `promoredemption`,
  `home_questsearchhistory` TO `questsearchhistory`,
  `home_recruitafriend` TO `recruitafriend`,
  `home_recruitreward` TO `recruitreward`,
  `home_renameprice` TO `renameprice`,
  `home_restorehistory` TO `restorehistory`,
  `home_revivehistory` TO `revivehistory`,
  `home_securitytoken` TO `securitytoken`,
  `home_serverselection` TO `serverselection`,
  `home_sistemaoperativo` TO `sistemaoperativo`,
  `home_store_category` TO `store_category`,
  `home_store_item` TO `store_item`,
  `home_store_order` TO `store_order`,
  `home_stripelog` TO `stripelog`,
  `home_tradecode` TO `tradecode`,
  `home_transferprice` TO `transferprice`,
  `home_unstuckhistory` TO `unstuckhistory`,
  `home_votelog` TO `votelog`,
  `home_votesite` TO `votesite`;
