From 62030d67faa2562be32f5986822df736a69bc4b5 Mon Sep 17 00:00:00 2001 From: Pablo Aragon Date: Tue, 9 Apr 2024 11:20:37 +0200 Subject: [PATCH] 13072-Change to 69.sql --- pandora_console/extras/mr/69.sql | 6 ++++++ pandora_console/extras/mr/70.sql | 8 -------- 2 files changed, 6 insertions(+), 8 deletions(-) delete mode 100644 pandora_console/extras/mr/70.sql diff --git a/pandora_console/extras/mr/69.sql b/pandora_console/extras/mr/69.sql index 11562f9ded..64e7aa11ba 100644 --- a/pandora_console/extras/mr/69.sql +++ b/pandora_console/extras/mr/69.sql @@ -1,5 +1,11 @@ START TRANSACTION; +-- Remove column id_usuario_destino from tmensajes -- +SET @exist = (SELECT count(*) FROM information_schema.columns WHERE TABLE_NAME='tmensajes' AND COLUMN_NAME='id_usuario_destino' AND table_schema = DATABASE()); +SET @sqlstmt = IF (@exist>0, 'ALTER TABLE `tmensajes` DROP COLUMN `id_usuario_destino`', 'SELECT ""'); +prepare stmt from @sqlstmt; +execute stmt; + DROP TABLE tskin; ALTER TABLE `tusuario` diff --git a/pandora_console/extras/mr/70.sql b/pandora_console/extras/mr/70.sql deleted file mode 100644 index a0a3e6fdae..0000000000 --- a/pandora_console/extras/mr/70.sql +++ /dev/null @@ -1,8 +0,0 @@ -START TRANSACTION; - -SET @exist = (SELECT count(*) FROM information_schema.columns WHERE TABLE_NAME='tmensajes' AND COLUMN_NAME='id_usuario_destino' AND table_schema = DATABASE()); -SET @sqlstmt = IF (@exist>0, 'ALTER TABLE `tmensajes` DROP COLUMN `id_usuario_destino`', 'SELECT ""'); -prepare stmt from @sqlstmt; -execute stmt; - -COMMIT;