From da0006c43710f78a4e53a10d4ab8220efb387234 Mon Sep 17 00:00:00 2001 From: Lizandro Guarnizo <77708265+lizandrogd@users.noreply.github.com> Date: Tue, 3 Feb 2026 22:12:12 -0500 Subject: [PATCH] Create fix_migration.php --- fix_migration.php | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 fix_migration.php diff --git a/fix_migration.php b/fix_migration.php new file mode 100644 index 0000000..fa93bac --- /dev/null +++ b/fix_migration.php @@ -0,0 +1,31 @@ +execute($stmt); + $count++; + echo " ✓ " . substr(preg_replace('/\s+/', ' ', $stmt), 0, 70) . "...\n"; + } catch (Exception $e) { + echo " ✗ " . $e->getMessage() . "\n"; + } +} + +echo "\n✅ Ejecutadas $count sentencias\n\n"; + +echo "📋 Columnas actuales de message_templates:\n"; +$cols = $db->fetchAll('DESCRIBE message_templates'); +foreach($cols as $c) { + echo " - {$c['Field']} ({$c['Type']})\n"; +}