fix: worker logs permission denied + migration AFTER password

This commit is contained in:
Lizandro Guarnizo
2026-03-10 22:23:30 -05:00
parent db469b2134
commit 1fb4361f96
3 changed files with 15 additions and 3 deletions
+1 -1
View File
@@ -164,7 +164,7 @@ CREATE TABLE IF NOT EXISTS `lab_config` (
-- C1) COLUMNA: admin_users.role_id (prod → local / instalaciones nuevas)
-- =============================================================================
ALTER TABLE `admin_users`
ADD COLUMN IF NOT EXISTS `role_id` int(11) DEFAULT NULL AFTER `password`;
ADD COLUMN IF NOT EXISTS `role_id` int(11) DEFAULT NULL;
-- C1a) FK opcional: se añade solo si no existe ya
-- (MariaDB/MySQL 10.x: ADD CONSTRAINT IF NOT EXISTS no es estándar,