Merge branch 'ent-13072-campo-en-db-fenix-de-tmensajes-que-no-esta-en-el-esquema-actual' into 'develop'

Ent 13072 campo en db fenix de tmensajes que no esta en el esquema actual

See merge request artica/pandorafms!7099
This commit is contained in:
Rafael Ameijeiras 2024-04-22 09:13:16 +00:00
commit 1f215110e7
1 changed files with 6 additions and 0 deletions

View File

@ -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 IF EXISTS tskin;
ALTER TABLE tfavmenu_user CONVERT TO CHARACTER SET UTF8MB4;