up
This commit is contained in:
@@ -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());
|
||||
Reference in New Issue
Block a user