This commit is contained in:
Lizandro Guarnizo
2026-04-16 23:07:53 -05:00
parent aa12a87fbb
commit 0164c51c1a
10 changed files with 236 additions and 41 deletions
+15
View File
@@ -0,0 +1,15 @@
-- =============================================================================
-- Migración: 20260416_roles_home_page
-- Agrega la columna home_page a la tabla roles para definir la página de inicio
-- por rol. El valor es la ruta relativa (ej. /lab_dashboard.php, /index.php).
-- NULL = comportamiento heredado (login.php decide según reglas antiguas).
-- =============================================================================
ALTER TABLE `roles`
ADD COLUMN IF NOT EXISTS `home_page` VARCHAR(200) DEFAULT NULL
COMMENT 'Ruta de inicio al hacer login. NULL = usa reglas heredadas.'
AFTER `color`;
-- Registrar migración
INSERT IGNORE INTO migrations (migration, executed_at)
VALUES ('20260416_roles_home_page', NOW());