16 lines
749 B
SQL
16 lines
749 B
SQL
-- =============================================================================
|
|
-- 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());
|