fix: corregir migraciones fallidas, redis doble carga y cache de assets
- Eliminar .env del tracking de git (credenciales no deben ir en repo) - Agregar .env y .env.* al .dockerignore (no hornear credenciales en imagen) - Quitar extension=redis.so duplicada en php.ini - Activar cache 7d para assets estáticos en nginx - Corregir 5 migraciones: eliminar INSERT INTO migrations con columna incorrecta y remover semicolons en comentarios -- que partian el parser SQL Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
a39e94c71b
commit
1342d305ec
@@ -22,6 +22,3 @@ WHERE permission = 'write' OR permission IS NULL;
|
||||
|
||||
-- Los que tienen permission='read' solo tienen can_view = 1 (ya es el DEFAULT, no tocar)
|
||||
|
||||
-- Registrar migración
|
||||
INSERT IGNORE INTO migrations (migration, executed_at)
|
||||
VALUES ('001_rbac_expandido', NOW());
|
||||
|
||||
@@ -38,6 +38,3 @@ INSERT IGNORE INTO role_modules (role_id, module_slug, can_view, can_create, can
|
||||
SELECT r.id, 'whatsapp', 1, 1, 1, 0, 1
|
||||
FROM roles r WHERE r.slug = 'operador_bot';
|
||||
|
||||
-- Registrar migración
|
||||
INSERT IGNORE INTO migrations (migration, executed_at)
|
||||
VALUES ('002_nuevos_roles', NOW());
|
||||
|
||||
@@ -38,7 +38,7 @@ CREATE TABLE IF NOT EXISTS exam_tipo_consentimientos (
|
||||
COMMENT='M:N entre tipos de examen y formularios de consentimiento';
|
||||
|
||||
-- ── 3. Lugares / estaciones de servicio configurables ───────
|
||||
-- Recepción NO es un lugar; es el paso implícito del flujo.
|
||||
-- Recepcion NO es un lugar (es el paso implicito del flujo).
|
||||
-- Cada lugar tiene su propia cola y su propia pantalla TV.
|
||||
CREATE TABLE IF NOT EXISTS turnero_lugares (
|
||||
id INT UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
-- Rol formularios_readonly: solo acceso a lab_formularios con permiso write
|
||||
-- Permite crear y editar formularios; los envíos/resultados son solo lectura (UI)
|
||||
-- Permite crear y editar formularios - los envios/resultados son solo lectura (UI)
|
||||
UPDATE role_modules
|
||||
SET permission = 'write'
|
||||
WHERE role_id = (SELECT id FROM roles WHERE slug = 'formularios_readonly')
|
||||
|
||||
@@ -10,6 +10,3 @@ ALTER TABLE `roles`
|
||||
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