From a3fd928073055af7a36f4a4fb86fb7136207e975 Mon Sep 17 00:00:00 2001 From: Edgar Friendly Date: Sat, 1 Aug 2026 19:27:57 +0200 Subject: [PATCH] =?UTF-8?q?Migraci=C3=B3n=20de=20esquema=20DB=20y=20soport?= =?UTF-8?q?e=20PWA:?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Mapeo campos en base de datos: ubicacion→provincia, telefono→subcategoria, email→direccion, web→enlaceGoogleMaps y añadido puntuacion. - Migración suave (ensureColumn) para añadir las nuevas columnas sin perder datos existentes si la DB ya existía con el esquema antiguo. - Actualización de rutas del servidor para guardar/leer los nuevos campos y convertir el NULL a valor nulo por defecto en puntuacion. - Soporte PWA: añadido meta tags (manifest, theme-color, apple-touch-icon) y registro de service worker para instalación del app y shell offline. --- index.html | 8 ++++++++ netlify.toml | 3 ++- server/db.js | 37 +++++++++++++++++++++++++++++-------- server/index.js | 16 ++++++++-------- src/main.jsx | 12 ++++++++++-- 5 files changed, 57 insertions(+), 19 deletions(-) diff --git a/index.html b/index.html index 421eea2..f327c7f 100644 --- a/index.html +++ b/index.html @@ -7,6 +7,14 @@ + + + + + + + +