13072-Change to 69.sql

This commit is contained in:
Pablo Aragon 2024-04-09 11:20:37 +02:00
parent 5e273db908
commit 62030d67fa
2 changed files with 6 additions and 8 deletions

View File

@ -1,5 +1,11 @@
START TRANSACTION; 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; DROP TABLE tskin;
ALTER TABLE `tusuario` ALTER TABLE `tusuario`

View File

@ -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;