Checkpoint: Correction des erreurs de colonnes dans la table rappels :

- Modification du schéma rappels : remplacement de nbJours par joursAvant pour correspondre à la structure réelle de la base de données
- Correction des noms de colonnes pour utiliser exactement la même casse que la base de données (templateType, heureEnvoi, nomFichier, urlFichier, s3Key, typeFichier, tailleFichier, derniereExecution)
- La page Rappels fonctionne maintenant correctement et affiche tous les rappels configurés sans erreurs SQL
This commit is contained in:
Manus
2026-01-12 11:56:15 -05:00
parent a969e8e870
commit 61f28781f0
10 changed files with 464 additions and 2 deletions

View File

@@ -0,0 +1,55 @@
{
"query": "SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'rappels' ORDER BY ORDINAL_POSITION;",
"command": "mysql --batch --raw --column-names --default-character-set=utf8mb4 --host gateway02.us-east-1.prod.aws.tidbcloud.com --port 4000 --user 4CrrYuB5tme73Qo.root --database 7PAT67UmWoxv8vwp8Bbcv6 --execute SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'rappels' ORDER BY ORDINAL_POSITION;",
"rows": [
{
"COLUMN_NAME": "id"
},
{
"COLUMN_NAME": "nom"
},
{
"COLUMN_NAME": "templateType"
},
{
"COLUMN_NAME": "timing"
},
{
"COLUMN_NAME": "joursAvant"
},
{
"COLUMN_NAME": "heureEnvoi"
},
{
"COLUMN_NAME": "actif"
},
{
"COLUMN_NAME": "derniereExecution"
},
{
"COLUMN_NAME": "createdAt"
},
{
"COLUMN_NAME": "updatedAt"
},
{
"COLUMN_NAME": "nomFichier"
},
{
"COLUMN_NAME": "urlFichier"
},
{
"COLUMN_NAME": "s3Key"
},
{
"COLUMN_NAME": "typeFichier"
},
{
"COLUMN_NAME": "tailleFichier"
}
],
"messages": [],
"stdout": "COLUMN_NAME\nid\nnom\ntemplateType\ntiming\njoursAvant\nheureEnvoi\nactif\nderniereExecution\ncreatedAt\nupdatedAt\nnomFichier\nurlFichier\ns3Key\ntypeFichier\ntailleFichier\n",
"stderr": "",
"execution_time_ms": 761
}

View File

@@ -0,0 +1,13 @@
{
"query": "SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'rappels' AND COLUMN_NAME LIKE '%execution%';",
"command": "mysql --batch --raw --column-names --default-character-set=utf8mb4 --host gateway02.us-east-1.prod.aws.tidbcloud.com --port 4000 --user 4CrrYuB5tme73Qo.root --database 7PAT67UmWoxv8vwp8Bbcv6 --execute SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'rappels' AND COLUMN_NAME LIKE '%execution%';",
"rows": [
{
"COLUMN_NAME": "derniereExecution"
}
],
"messages": [],
"stdout": "COLUMN_NAME\nderniereExecution\n",
"stderr": "",
"execution_time_ms": 80
}

View File

@@ -0,0 +1,130 @@
{
"query": "SHOW COLUMNS FROM rappels;",
"command": "mysql --batch --raw --column-names --default-character-set=utf8mb4 --host gateway02.us-east-1.prod.aws.tidbcloud.com --port 4000 --user 4CrrYuB5tme73Qo.root --database 7PAT67UmWoxv8vwp8Bbcv6 --execute SHOW COLUMNS FROM rappels;",
"rows": [
{
"Field": "id",
"Type": "int(11)",
"Null": "NO",
"Key": "PRI",
"Default": "NULL",
"Extra": "auto_increment"
},
{
"Field": "nom",
"Type": "varchar(255)",
"Null": "NO",
"Key": "",
"Default": "NULL",
"Extra": ""
},
{
"Field": "templateType",
"Type": "varchar(50)",
"Null": "NO",
"Key": "",
"Default": "NULL",
"Extra": ""
},
{
"Field": "timing",
"Type": "enum('pre_formation','post_formation')",
"Null": "NO",
"Key": "",
"Default": "pre_formation",
"Extra": ""
},
{
"Field": "joursAvant",
"Type": "int(11)",
"Null": "NO",
"Key": "",
"Default": "NULL",
"Extra": ""
},
{
"Field": "heureEnvoi",
"Type": "varchar(5)",
"Null": "NO",
"Key": "",
"Default": "09:00",
"Extra": ""
},
{
"Field": "actif",
"Type": "tinyint(1)",
"Null": "NO",
"Key": "",
"Default": "1",
"Extra": ""
},
{
"Field": "derniereExecution",
"Type": "timestamp",
"Null": "YES",
"Key": "",
"Default": "NULL",
"Extra": ""
},
{
"Field": "createdAt",
"Type": "timestamp",
"Null": "NO",
"Key": "",
"Default": "CURRENT_TIMESTAMP",
"Extra": ""
},
{
"Field": "updatedAt",
"Type": "timestamp",
"Null": "NO",
"Key": "",
"Default": "CURRENT_TIMESTAMP",
"Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP"
},
{
"Field": "nomFichier",
"Type": "varchar(255)",
"Null": "YES",
"Key": "",
"Default": "NULL",
"Extra": ""
},
{
"Field": "urlFichier",
"Type": "text",
"Null": "YES",
"Key": "",
"Default": "NULL",
"Extra": ""
},
{
"Field": "s3Key",
"Type": "varchar(500)",
"Null": "YES",
"Key": "",
"Default": "NULL",
"Extra": ""
},
{
"Field": "typeFichier",
"Type": "varchar(100)",
"Null": "YES",
"Key": "",
"Default": "NULL",
"Extra": ""
},
{
"Field": "tailleFichier",
"Type": "int(11)",
"Null": "YES",
"Key": "",
"Default": "NULL",
"Extra": ""
}
],
"messages": [],
"stdout": "Field\tType\tNull\tKey\tDefault\tExtra\nid\tint(11)\tNO\tPRI\tNULL\tauto_increment\nnom\tvarchar(255)\tNO\t\tNULL\t\ntemplateType\tvarchar(50)\tNO\t\tNULL\t\ntiming\tenum('pre_formation','post_formation')\tNO\t\tpre_formation\t\njoursAvant\tint(11)\tNO\t\tNULL\t\nheureEnvoi\tvarchar(5)\tNO\t\t09:00\t\nactif\ttinyint(1)\tNO\t\t1\t\nderniereExecution\ttimestamp\tYES\t\tNULL\t\ncreatedAt\ttimestamp\tNO\t\tCURRENT_TIMESTAMP\t\nupdatedAt\ttimestamp\tNO\t\tCURRENT_TIMESTAMP\tDEFAULT_GENERATED on update CURRENT_TIMESTAMP\nnomFichier\tvarchar(255)\tYES\t\tNULL\t\nurlFichier\ttext\tYES\t\tNULL\t\ns3Key\tvarchar(500)\tYES\t\tNULL\t\ntypeFichier\tvarchar(100)\tYES\t\tNULL\t\ntailleFichier\tint(11)\tYES\t\tNULL\t\n",
"stderr": "",
"execution_time_ms": 94
}

View File

@@ -0,0 +1,70 @@
{
"query": "SELECT COLUMN_NAME, COLUMN_TYPE FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'rappels' ORDER BY ORDINAL_POSITION;",
"command": "mysql --batch --raw --column-names --default-character-set=utf8mb4 --host gateway02.us-east-1.prod.aws.tidbcloud.com --port 4000 --user 4CrrYuB5tme73Qo.root --database 7PAT67UmWoxv8vwp8Bbcv6 --execute SELECT COLUMN_NAME, COLUMN_TYPE FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'rappels' ORDER BY ORDINAL_POSITION;",
"rows": [
{
"COLUMN_NAME": "id",
"COLUMN_TYPE": "int(11)"
},
{
"COLUMN_NAME": "nom",
"COLUMN_TYPE": "varchar(255)"
},
{
"COLUMN_NAME": "templateType",
"COLUMN_TYPE": "varchar(50)"
},
{
"COLUMN_NAME": "timing",
"COLUMN_TYPE": "enum('pre_formation','post_formation')"
},
{
"COLUMN_NAME": "joursAvant",
"COLUMN_TYPE": "int(11)"
},
{
"COLUMN_NAME": "heureEnvoi",
"COLUMN_TYPE": "varchar(5)"
},
{
"COLUMN_NAME": "actif",
"COLUMN_TYPE": "tinyint(1)"
},
{
"COLUMN_NAME": "derniereExecution",
"COLUMN_TYPE": "timestamp"
},
{
"COLUMN_NAME": "createdAt",
"COLUMN_TYPE": "timestamp"
},
{
"COLUMN_NAME": "updatedAt",
"COLUMN_TYPE": "timestamp"
},
{
"COLUMN_NAME": "nomFichier",
"COLUMN_TYPE": "varchar(255)"
},
{
"COLUMN_NAME": "urlFichier",
"COLUMN_TYPE": "text"
},
{
"COLUMN_NAME": "s3Key",
"COLUMN_TYPE": "varchar(500)"
},
{
"COLUMN_NAME": "typeFichier",
"COLUMN_TYPE": "varchar(100)"
},
{
"COLUMN_NAME": "tailleFichier",
"COLUMN_TYPE": "int(11)"
}
],
"messages": [],
"stdout": "COLUMN_NAME\tCOLUMN_TYPE\nid\tint(11)\nnom\tvarchar(255)\ntemplateType\tvarchar(50)\ntiming\tenum('pre_formation','post_formation')\njoursAvant\tint(11)\nheureEnvoi\tvarchar(5)\nactif\ttinyint(1)\nderniereExecution\ttimestamp\ncreatedAt\ttimestamp\nupdatedAt\ttimestamp\nnomFichier\tvarchar(255)\nurlFichier\ttext\ns3Key\tvarchar(500)\ntypeFichier\tvarchar(100)\ntailleFichier\tint(11)\n",
"stderr": "",
"execution_time_ms": 165
}

View File

@@ -0,0 +1,27 @@
{
"query": "SELECT * FROM rappels LIMIT 1;",
"command": "mysql --batch --raw --column-names --default-character-set=utf8mb4 --host gateway02.us-east-1.prod.aws.tidbcloud.com --port 4000 --user 4CrrYuB5tme73Qo.root --database 7PAT67UmWoxv8vwp8Bbcv6 --execute SELECT * FROM rappels LIMIT 1;",
"rows": [
{
"id": "1",
"nom": "J-7",
"templateType": "rappel",
"timing": "pre_formation",
"joursAvant": "7",
"heureEnvoi": "09:00",
"actif": "1",
"derniereExecution": "2026-01-12 08:25:09",
"createdAt": "2025-12-01 08:15:25",
"updatedAt": "2026-01-12 08:25:09",
"nomFichier": "NULL",
"urlFichier": "NULL",
"s3Key": "NULL",
"typeFichier": "NULL",
"tailleFichier": "NULL"
}
],
"messages": [],
"stdout": "id\tnom\ttemplateType\ttiming\tjoursAvant\theureEnvoi\tactif\tderniereExecution\tcreatedAt\tupdatedAt\tnomFichier\turlFichier\ts3Key\ttypeFichier\ttailleFichier\n1\tJ-7\trappel\tpre_formation\t7\t09:00\t1\t2026-01-12 08:25:09\t2025-12-01 08:15:25\t2026-01-12 08:25:09\tNULL\tNULL\tNULL\tNULL\tNULL\n",
"stderr": "",
"execution_time_ms": 99
}

View File

@@ -0,0 +1,18 @@
{
"query": "SHOW VARIABLES LIKE 'lower_case%';",
"command": "mysql --batch --raw --column-names --default-character-set=utf8mb4 --host gateway02.us-east-1.prod.aws.tidbcloud.com --port 4000 --user 4CrrYuB5tme73Qo.root --database 7PAT67UmWoxv8vwp8Bbcv6 --execute SHOW VARIABLES LIKE 'lower_case%';",
"rows": [
{
"Variable_name": "lower_case_file_system",
"Value": "1"
},
{
"Variable_name": "lower_case_table_names",
"Value": "2"
}
],
"messages": [],
"stdout": "Variable_name\tValue\nlower_case_file_system\t1\nlower_case_table_names\t2\n",
"stderr": "",
"execution_time_ms": 447
}

View File

@@ -0,0 +1,13 @@
{
"query": "SELECT COUNT(*) as nb_colonnes FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'rappels';",
"command": "mysql --batch --raw --column-names --default-character-set=utf8mb4 --host gateway02.us-east-1.prod.aws.tidbcloud.com --port 4000 --user 4CrrYuB5tme73Qo.root --database 7PAT67UmWoxv8vwp8Bbcv6 --execute SELECT COUNT(*) as nb_colonnes FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'rappels';",
"rows": [
{
"nb_colonnes": "15"
}
],
"messages": [],
"stdout": "nb_colonnes\n15\n",
"stderr": "",
"execution_time_ms": 335
}

View File

@@ -0,0 +1,130 @@
{
"query": "DESCRIBE rappels;",
"command": "mysql --batch --raw --column-names --default-character-set=utf8mb4 --host gateway02.us-east-1.prod.aws.tidbcloud.com --port 4000 --user 4CrrYuB5tme73Qo.root --database 7PAT67UmWoxv8vwp8Bbcv6 --execute DESCRIBE rappels;",
"rows": [
{
"Field": "id",
"Type": "int(11)",
"Null": "NO",
"Key": "PRI",
"Default": "NULL",
"Extra": "auto_increment"
},
{
"Field": "nom",
"Type": "varchar(255)",
"Null": "NO",
"Key": "",
"Default": "NULL",
"Extra": ""
},
{
"Field": "templateType",
"Type": "varchar(50)",
"Null": "NO",
"Key": "",
"Default": "NULL",
"Extra": ""
},
{
"Field": "timing",
"Type": "enum('pre_formation','post_formation')",
"Null": "NO",
"Key": "",
"Default": "pre_formation",
"Extra": ""
},
{
"Field": "joursAvant",
"Type": "int(11)",
"Null": "NO",
"Key": "",
"Default": "NULL",
"Extra": ""
},
{
"Field": "heureEnvoi",
"Type": "varchar(5)",
"Null": "NO",
"Key": "",
"Default": "09:00",
"Extra": ""
},
{
"Field": "actif",
"Type": "tinyint(1)",
"Null": "NO",
"Key": "",
"Default": "1",
"Extra": ""
},
{
"Field": "derniereExecution",
"Type": "timestamp",
"Null": "YES",
"Key": "",
"Default": "NULL",
"Extra": ""
},
{
"Field": "createdAt",
"Type": "timestamp",
"Null": "NO",
"Key": "",
"Default": "CURRENT_TIMESTAMP",
"Extra": ""
},
{
"Field": "updatedAt",
"Type": "timestamp",
"Null": "NO",
"Key": "",
"Default": "CURRENT_TIMESTAMP",
"Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP"
},
{
"Field": "nomFichier",
"Type": "varchar(255)",
"Null": "YES",
"Key": "",
"Default": "NULL",
"Extra": ""
},
{
"Field": "urlFichier",
"Type": "text",
"Null": "YES",
"Key": "",
"Default": "NULL",
"Extra": ""
},
{
"Field": "s3Key",
"Type": "varchar(500)",
"Null": "YES",
"Key": "",
"Default": "NULL",
"Extra": ""
},
{
"Field": "typeFichier",
"Type": "varchar(100)",
"Null": "YES",
"Key": "",
"Default": "NULL",
"Extra": ""
},
{
"Field": "tailleFichier",
"Type": "int(11)",
"Null": "YES",
"Key": "",
"Default": "NULL",
"Extra": ""
}
],
"messages": [],
"stdout": "Field\tType\tNull\tKey\tDefault\tExtra\nid\tint(11)\tNO\tPRI\tNULL\tauto_increment\nnom\tvarchar(255)\tNO\t\tNULL\t\ntemplateType\tvarchar(50)\tNO\t\tNULL\t\ntiming\tenum('pre_formation','post_formation')\tNO\t\tpre_formation\t\njoursAvant\tint(11)\tNO\t\tNULL\t\nheureEnvoi\tvarchar(5)\tNO\t\t09:00\t\nactif\ttinyint(1)\tNO\t\t1\t\nderniereExecution\ttimestamp\tYES\t\tNULL\t\ncreatedAt\ttimestamp\tNO\t\tCURRENT_TIMESTAMP\t\nupdatedAt\ttimestamp\tNO\t\tCURRENT_TIMESTAMP\tDEFAULT_GENERATED on update CURRENT_TIMESTAMP\nnomFichier\tvarchar(255)\tYES\t\tNULL\t\nurlFichier\ttext\tYES\t\tNULL\t\ns3Key\tvarchar(500)\tYES\t\tNULL\t\ntypeFichier\tvarchar(100)\tYES\t\tNULL\t\ntailleFichier\tint(11)\tYES\t\tNULL\t\n",
"stderr": "",
"execution_time_ms": 64
}