- 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
70 lines
2.2 KiB
JSON
70 lines
2.2 KiB
JSON
{
|
|
"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
|
|
} |