Checkpoint: Corrections multiples :
- Renommage questionnaire.nom → questionnaire.titre dans QuestionnaireReponse.tsx, AdminQuestionnaireEdit.tsx, questionnaireScheduler.ts, questionnaireExport.ts - Correction des requêtes SQL dans questionnaireDb.ts (suppression de la condition complete inexistante) - Ajout des colonnes valeurMin et valeurMax dans la table questions - Renommage de la colonne nom en titre dans la table questionnaires
This commit is contained in:
90
.manus/db/db-query-1768376558906.json
Normal file
90
.manus/db/db-query-1768376558906.json
Normal file
@@ -0,0 +1,90 @@
|
||||
{
|
||||
"query": "DESCRIBE questionnaires;",
|
||||
"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 questionnaires;",
|
||||
"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": "type",
|
||||
"Type": "enum('satisfaction','evaluation_pre','evaluation_post')",
|
||||
"Null": "NO",
|
||||
"Key": "",
|
||||
"Default": "NULL",
|
||||
"Extra": ""
|
||||
},
|
||||
{
|
||||
"Field": "description",
|
||||
"Type": "text",
|
||||
"Null": "YES",
|
||||
"Key": "",
|
||||
"Default": "NULL",
|
||||
"Extra": ""
|
||||
},
|
||||
{
|
||||
"Field": "formationId",
|
||||
"Type": "int(11)",
|
||||
"Null": "YES",
|
||||
"Key": "",
|
||||
"Default": "NULL",
|
||||
"Extra": ""
|
||||
},
|
||||
{
|
||||
"Field": "actif",
|
||||
"Type": "tinyint(1)",
|
||||
"Null": "NO",
|
||||
"Key": "",
|
||||
"Default": "1",
|
||||
"Extra": ""
|
||||
},
|
||||
{
|
||||
"Field": "envoiAutomatique",
|
||||
"Type": "tinyint(1)",
|
||||
"Null": "NO",
|
||||
"Key": "",
|
||||
"Default": "0",
|
||||
"Extra": ""
|
||||
},
|
||||
{
|
||||
"Field": "delaiEnvoiJours",
|
||||
"Type": "int(11)",
|
||||
"Null": "NO",
|
||||
"Key": "",
|
||||
"Default": "1",
|
||||
"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"
|
||||
}
|
||||
],
|
||||
"messages": [],
|
||||
"stdout": "Field\tType\tNull\tKey\tDefault\tExtra\nid\tint(11)\tNO\tPRI\tNULL\tauto_increment\nnom\tvarchar(255)\tNO\t\tNULL\t\ntype\tenum('satisfaction','evaluation_pre','evaluation_post')\tNO\t\tNULL\t\ndescription\ttext\tYES\t\tNULL\t\nformationId\tint(11)\tYES\t\tNULL\t\nactif\ttinyint(1)\tNO\t\t1\t\nenvoiAutomatique\ttinyint(1)\tNO\t\t0\t\ndelaiEnvoiJours\tint(11)\tNO\t\t1\t\ncreatedAt\ttimestamp\tNO\t\tCURRENT_TIMESTAMP\t\nupdatedAt\ttimestamp\tNO\t\tCURRENT_TIMESTAMP\tDEFAULT_GENERATED on update CURRENT_TIMESTAMP\n",
|
||||
"stderr": "",
|
||||
"execution_time_ms": 710
|
||||
}
|
||||
40
.manus/db/db-query-1768376568790.json
Normal file
40
.manus/db/db-query-1768376568790.json
Normal file
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"query": "SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'questionnaires';",
|
||||
"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 = 'questionnaires';",
|
||||
"rows": [
|
||||
{
|
||||
"COLUMN_NAME": "id"
|
||||
},
|
||||
{
|
||||
"COLUMN_NAME": "nom"
|
||||
},
|
||||
{
|
||||
"COLUMN_NAME": "type"
|
||||
},
|
||||
{
|
||||
"COLUMN_NAME": "description"
|
||||
},
|
||||
{
|
||||
"COLUMN_NAME": "formationId"
|
||||
},
|
||||
{
|
||||
"COLUMN_NAME": "actif"
|
||||
},
|
||||
{
|
||||
"COLUMN_NAME": "envoiAutomatique"
|
||||
},
|
||||
{
|
||||
"COLUMN_NAME": "delaiEnvoiJours"
|
||||
},
|
||||
{
|
||||
"COLUMN_NAME": "createdAt"
|
||||
},
|
||||
{
|
||||
"COLUMN_NAME": "updatedAt"
|
||||
}
|
||||
],
|
||||
"messages": [],
|
||||
"stdout": "COLUMN_NAME\nid\nnom\ntype\ndescription\nformationId\nactif\nenvoiAutomatique\ndelaiEnvoiJours\ncreatedAt\nupdatedAt\n",
|
||||
"stderr": "",
|
||||
"execution_time_ms": 61
|
||||
}
|
||||
90
.manus/db/db-query-1768376575187.json
Normal file
90
.manus/db/db-query-1768376575187.json
Normal file
@@ -0,0 +1,90 @@
|
||||
{
|
||||
"query": "SHOW COLUMNS FROM questionnaires;",
|
||||
"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 questionnaires;",
|
||||
"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": "type",
|
||||
"Type": "enum('satisfaction','evaluation_pre','evaluation_post')",
|
||||
"Null": "NO",
|
||||
"Key": "",
|
||||
"Default": "NULL",
|
||||
"Extra": ""
|
||||
},
|
||||
{
|
||||
"Field": "description",
|
||||
"Type": "text",
|
||||
"Null": "YES",
|
||||
"Key": "",
|
||||
"Default": "NULL",
|
||||
"Extra": ""
|
||||
},
|
||||
{
|
||||
"Field": "formationId",
|
||||
"Type": "int(11)",
|
||||
"Null": "YES",
|
||||
"Key": "",
|
||||
"Default": "NULL",
|
||||
"Extra": ""
|
||||
},
|
||||
{
|
||||
"Field": "actif",
|
||||
"Type": "tinyint(1)",
|
||||
"Null": "NO",
|
||||
"Key": "",
|
||||
"Default": "1",
|
||||
"Extra": ""
|
||||
},
|
||||
{
|
||||
"Field": "envoiAutomatique",
|
||||
"Type": "tinyint(1)",
|
||||
"Null": "NO",
|
||||
"Key": "",
|
||||
"Default": "0",
|
||||
"Extra": ""
|
||||
},
|
||||
{
|
||||
"Field": "delaiEnvoiJours",
|
||||
"Type": "int(11)",
|
||||
"Null": "NO",
|
||||
"Key": "",
|
||||
"Default": "1",
|
||||
"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"
|
||||
}
|
||||
],
|
||||
"messages": [],
|
||||
"stdout": "Field\tType\tNull\tKey\tDefault\tExtra\nid\tint(11)\tNO\tPRI\tNULL\tauto_increment\nnom\tvarchar(255)\tNO\t\tNULL\t\ntype\tenum('satisfaction','evaluation_pre','evaluation_post')\tNO\t\tNULL\t\ndescription\ttext\tYES\t\tNULL\t\nformationId\tint(11)\tYES\t\tNULL\t\nactif\ttinyint(1)\tNO\t\t1\t\nenvoiAutomatique\ttinyint(1)\tNO\t\t0\t\ndelaiEnvoiJours\tint(11)\tNO\t\t1\t\ncreatedAt\ttimestamp\tNO\t\tCURRENT_TIMESTAMP\t\nupdatedAt\ttimestamp\tNO\t\tCURRENT_TIMESTAMP\tDEFAULT_GENERATED on update CURRENT_TIMESTAMP\n",
|
||||
"stderr": "",
|
||||
"execution_time_ms": 62
|
||||
}
|
||||
9
.manus/db/db-query-1768376586515.json
Normal file
9
.manus/db/db-query-1768376586515.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"query": "ALTER TABLE questionnaires CHANGE COLUMN nom titre VARCHAR(255) NOT NULL;",
|
||||
"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 ALTER TABLE questionnaires CHANGE COLUMN nom titre VARCHAR(255) NOT NULL;",
|
||||
"rows": [],
|
||||
"messages": [],
|
||||
"stdout": "",
|
||||
"stderr": "",
|
||||
"execution_time_ms": 172
|
||||
}
|
||||
114
.manus/db/db-query-1768376894838.json
Normal file
114
.manus/db/db-query-1768376894838.json
Normal file
@@ -0,0 +1,114 @@
|
||||
{
|
||||
"query": "SHOW COLUMNS FROM questions;",
|
||||
"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 questions;",
|
||||
"rows": [
|
||||
{
|
||||
"Field": "id",
|
||||
"Type": "int(11)",
|
||||
"Null": "NO",
|
||||
"Key": "PRI",
|
||||
"Default": "NULL",
|
||||
"Extra": "auto_increment"
|
||||
},
|
||||
{
|
||||
"Field": "questionnaireId",
|
||||
"Type": "int(11)",
|
||||
"Null": "NO",
|
||||
"Key": "",
|
||||
"Default": "NULL",
|
||||
"Extra": ""
|
||||
},
|
||||
{
|
||||
"Field": "ordre",
|
||||
"Type": "int(11)",
|
||||
"Null": "NO",
|
||||
"Key": "",
|
||||
"Default": "NULL",
|
||||
"Extra": ""
|
||||
},
|
||||
{
|
||||
"Field": "texte",
|
||||
"Type": "text",
|
||||
"Null": "NO",
|
||||
"Key": "",
|
||||
"Default": "NULL",
|
||||
"Extra": ""
|
||||
},
|
||||
{
|
||||
"Field": "typeQuestion",
|
||||
"Type": "enum('choix_multiple','echelle','texte_libre','oui_non')",
|
||||
"Null": "NO",
|
||||
"Key": "",
|
||||
"Default": "NULL",
|
||||
"Extra": ""
|
||||
},
|
||||
{
|
||||
"Field": "options",
|
||||
"Type": "text",
|
||||
"Null": "YES",
|
||||
"Key": "",
|
||||
"Default": "NULL",
|
||||
"Extra": ""
|
||||
},
|
||||
{
|
||||
"Field": "echelleMin",
|
||||
"Type": "int(11)",
|
||||
"Null": "YES",
|
||||
"Key": "",
|
||||
"Default": "NULL",
|
||||
"Extra": ""
|
||||
},
|
||||
{
|
||||
"Field": "echelleMax",
|
||||
"Type": "int(11)",
|
||||
"Null": "YES",
|
||||
"Key": "",
|
||||
"Default": "NULL",
|
||||
"Extra": ""
|
||||
},
|
||||
{
|
||||
"Field": "echelleLabelMin",
|
||||
"Type": "varchar(255)",
|
||||
"Null": "YES",
|
||||
"Key": "",
|
||||
"Default": "NULL",
|
||||
"Extra": ""
|
||||
},
|
||||
{
|
||||
"Field": "echelleLabelMax",
|
||||
"Type": "varchar(255)",
|
||||
"Null": "YES",
|
||||
"Key": "",
|
||||
"Default": "NULL",
|
||||
"Extra": ""
|
||||
},
|
||||
{
|
||||
"Field": "obligatoire",
|
||||
"Type": "tinyint(1)",
|
||||
"Null": "NO",
|
||||
"Key": "",
|
||||
"Default": "0",
|
||||
"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"
|
||||
}
|
||||
],
|
||||
"messages": [],
|
||||
"stdout": "Field\tType\tNull\tKey\tDefault\tExtra\nid\tint(11)\tNO\tPRI\tNULL\tauto_increment\nquestionnaireId\tint(11)\tNO\t\tNULL\t\nordre\tint(11)\tNO\t\tNULL\t\ntexte\ttext\tNO\t\tNULL\t\ntypeQuestion\tenum('choix_multiple','echelle','texte_libre','oui_non')\tNO\t\tNULL\t\noptions\ttext\tYES\t\tNULL\t\nechelleMin\tint(11)\tYES\t\tNULL\t\nechelleMax\tint(11)\tYES\t\tNULL\t\nechelleLabelMin\tvarchar(255)\tYES\t\tNULL\t\nechelleLabelMax\tvarchar(255)\tYES\t\tNULL\t\nobligatoire\ttinyint(1)\tNO\t\t0\t\ncreatedAt\ttimestamp\tNO\t\tCURRENT_TIMESTAMP\t\nupdatedAt\ttimestamp\tNO\t\tCURRENT_TIMESTAMP\tDEFAULT_GENERATED on update CURRENT_TIMESTAMP\n",
|
||||
"stderr": "",
|
||||
"execution_time_ms": 57
|
||||
}
|
||||
49
.manus/db/db-query-1768376902477.json
Normal file
49
.manus/db/db-query-1768376902477.json
Normal file
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"query": "SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'questions';",
|
||||
"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_SCHEMA = DATABASE() AND TABLE_NAME = 'questions';",
|
||||
"rows": [
|
||||
{
|
||||
"COLUMN_NAME": "id"
|
||||
},
|
||||
{
|
||||
"COLUMN_NAME": "questionnaireId"
|
||||
},
|
||||
{
|
||||
"COLUMN_NAME": "ordre"
|
||||
},
|
||||
{
|
||||
"COLUMN_NAME": "texte"
|
||||
},
|
||||
{
|
||||
"COLUMN_NAME": "typeQuestion"
|
||||
},
|
||||
{
|
||||
"COLUMN_NAME": "options"
|
||||
},
|
||||
{
|
||||
"COLUMN_NAME": "echelleMin"
|
||||
},
|
||||
{
|
||||
"COLUMN_NAME": "echelleMax"
|
||||
},
|
||||
{
|
||||
"COLUMN_NAME": "echelleLabelMin"
|
||||
},
|
||||
{
|
||||
"COLUMN_NAME": "echelleLabelMax"
|
||||
},
|
||||
{
|
||||
"COLUMN_NAME": "obligatoire"
|
||||
},
|
||||
{
|
||||
"COLUMN_NAME": "createdAt"
|
||||
},
|
||||
{
|
||||
"COLUMN_NAME": "updatedAt"
|
||||
}
|
||||
],
|
||||
"messages": [],
|
||||
"stdout": "COLUMN_NAME\nid\nquestionnaireId\nordre\ntexte\ntypeQuestion\noptions\nechelleMin\nechelleMax\nechelleLabelMin\nechelleLabelMax\nobligatoire\ncreatedAt\nupdatedAt\n",
|
||||
"stderr": "",
|
||||
"execution_time_ms": 62
|
||||
}
|
||||
9
.manus/db/db-query-1768376942069.json
Normal file
9
.manus/db/db-query-1768376942069.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"query": "ALTER TABLE questions ADD COLUMN IF NOT EXISTS valeurMin INT DEFAULT NULL; ALTER TABLE questions ADD COLUMN IF NOT EXISTS valeurMax INT DEFAULT NULL;",
|
||||
"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 ALTER TABLE questions ADD COLUMN IF NOT EXISTS valeurMin INT DEFAULT NULL; ALTER TABLE questions ADD COLUMN IF NOT EXISTS valeurMax INT DEFAULT NULL;",
|
||||
"rows": [],
|
||||
"messages": [],
|
||||
"stdout": "",
|
||||
"stderr": "",
|
||||
"execution_time_ms": 950
|
||||
}
|
||||
Reference in New Issue
Block a user