Checkpoint: Checkpoint: Restauration de la procédure sequences.getDatesByFormateurToken et de la fonction getSequenceByFormateurToken dans db.ts. Le système d'émargement formateur fonctionne maintenant correctement avec chargement des dates. Prochaine étape : corriger l'affichage du message "[ERREUR MUTATION]" pour les doublons.
This commit is contained in:
9
.manus/db/db-query-1770297902539.json
Normal file
9
.manus/db/db-query-1770297902539.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"query": "ALTER TABLE sequences ADD COLUMN IF NOT EXISTS qrCodeFormateurToken VARCHAR(255);",
|
||||
"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 sequences ADD COLUMN IF NOT EXISTS qrCodeFormateurToken VARCHAR(255);",
|
||||
"rows": [],
|
||||
"messages": [],
|
||||
"stdout": "",
|
||||
"stderr": "",
|
||||
"execution_time_ms": 553
|
||||
}
|
||||
15
.manus/db/db-query-1770298235992.json
Normal file
15
.manus/db/db-query-1770298235992.json
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"query": "SELECT id, nom, qrCodeFormateurToken FROM sequences WHERE statut = 'ouverte' 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 id, nom, qrCodeFormateurToken FROM sequences WHERE statut = 'ouverte' LIMIT 1;",
|
||||
"rows": [
|
||||
{
|
||||
"id": "60001",
|
||||
"nom": "Groupe C",
|
||||
"qrCodeFormateurToken": "NULL"
|
||||
}
|
||||
],
|
||||
"messages": [],
|
||||
"stdout": "id\tnom\tqrCodeFormateurToken\n60001\tGroupe C\tNULL\n",
|
||||
"stderr": "",
|
||||
"execution_time_ms": 951
|
||||
}
|
||||
9
.manus/db/db-query-1770298249539.json
Normal file
9
.manus/db/db-query-1770298249539.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"query": "UPDATE sequences SET qrCodeFormateurToken = 'test-formateur-token-123' WHERE id = 2;",
|
||||
"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 UPDATE sequences SET qrCodeFormateurToken = 'test-formateur-token-123' WHERE id = 2;",
|
||||
"rows": [],
|
||||
"messages": [],
|
||||
"stdout": "",
|
||||
"stderr": "",
|
||||
"execution_time_ms": 55
|
||||
}
|
||||
15
.manus/db/db-query-1770298254825.json
Normal file
15
.manus/db/db-query-1770298254825.json
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"query": "SELECT id, nom, email FROM formateurs 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 id, nom, email FROM formateurs LIMIT 1;",
|
||||
"rows": [
|
||||
{
|
||||
"id": "1",
|
||||
"nom": "Jean Dupont",
|
||||
"email": "opareige@gmail.com"
|
||||
}
|
||||
],
|
||||
"messages": [],
|
||||
"stdout": "id\tnom\temail\n1\tJean Dupont\topareige@gmail.com\n",
|
||||
"stderr": "",
|
||||
"execution_time_ms": 57
|
||||
}
|
||||
9
.manus/db/db-query-1770298261447.json
Normal file
9
.manus/db/db-query-1770298261447.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"query": "SELECT id, sequenceId, dateDebut, dateFin FROM datesFormation WHERE sequenceId = 2 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 id, sequenceId, dateDebut, dateFin FROM datesFormation WHERE sequenceId = 2 LIMIT 1;",
|
||||
"rows": [],
|
||||
"messages": [],
|
||||
"stdout": "",
|
||||
"stderr": "",
|
||||
"execution_time_ms": 54
|
||||
}
|
||||
9
.manus/db/db-query-1770298280697.json
Normal file
9
.manus/db/db-query-1770298280697.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"query": "SELECT s.id, s.nom, s.qrCodeFormateurToken, df.id as dateFormationId, df.dateDebut, df.dateFin FROM sequences s INNER JOIN datesFormation df ON s.id = df.sequenceId WHERE s.statut = 'ouverte' AND df.dateDebut <= CURDATE() AND df.dateFin >= CURDATE() 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 s.id, s.nom, s.qrCodeFormateurToken, df.id as dateFormationId, df.dateDebut, df.dateFin FROM sequences s INNER JOIN datesFormation df ON s.id = df.sequenceId WHERE s.statut = 'ouverte' AND df.dateDebut <= CURDATE() AND df.dateFin >= CURDATE() LIMIT 1;",
|
||||
"rows": [],
|
||||
"messages": [],
|
||||
"stdout": "",
|
||||
"stderr": "",
|
||||
"execution_time_ms": 60
|
||||
}
|
||||
13
.manus/db/db-query-1770298337364.json
Normal file
13
.manus/db/db-query-1770298337364.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"query": "SELECT email FROM formateurs 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 email FROM formateurs LIMIT 1;",
|
||||
"rows": [
|
||||
{
|
||||
"email": "opareige@gmail.com"
|
||||
}
|
||||
],
|
||||
"messages": [],
|
||||
"stdout": "email\nopareige@gmail.com\n",
|
||||
"stderr": "",
|
||||
"execution_time_ms": 56
|
||||
}
|
||||
9
.manus/db/db-query-1770298461257.json
Normal file
9
.manus/db/db-query-1770298461257.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"query": "SELECT id, nom, qrCodeFormateurToken FROM sequences WHERE id = 2;",
|
||||
"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 id, nom, qrCodeFormateurToken FROM sequences WHERE id = 2;",
|
||||
"rows": [],
|
||||
"messages": [],
|
||||
"stdout": "",
|
||||
"stderr": "",
|
||||
"execution_time_ms": 53
|
||||
}
|
||||
9
.manus/db/db-query-1770298491456.json
Normal file
9
.manus/db/db-query-1770298491456.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"query": "SELECT id, nom, qrCodeFormateurToken FROM sequences WHERE qrCodeFormateurToken = 'test-formateur-token-123';",
|
||||
"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 id, nom, qrCodeFormateurToken FROM sequences WHERE qrCodeFormateurToken = 'test-formateur-token-123';",
|
||||
"rows": [],
|
||||
"messages": [],
|
||||
"stdout": "",
|
||||
"stderr": "",
|
||||
"execution_time_ms": 59
|
||||
}
|
||||
9
.manus/db/db-query-1770298504177.json
Normal file
9
.manus/db/db-query-1770298504177.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"query": "UPDATE sequences SET qrCodeFormateurToken = 'test-formateur-token-123' WHERE id = 2;",
|
||||
"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 UPDATE sequences SET qrCodeFormateurToken = 'test-formateur-token-123' WHERE id = 2;",
|
||||
"rows": [],
|
||||
"messages": [],
|
||||
"stdout": "",
|
||||
"stderr": "",
|
||||
"execution_time_ms": 57
|
||||
}
|
||||
9
.manus/db/db-query-1770298511189.json
Normal file
9
.manus/db/db-query-1770298511189.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"query": "SELECT id, nom, qrCodeFormateurToken FROM sequences WHERE qrCodeFormateurToken = 'test-formateur-token-123';",
|
||||
"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 id, nom, qrCodeFormateurToken FROM sequences WHERE qrCodeFormateurToken = 'test-formateur-token-123';",
|
||||
"rows": [],
|
||||
"messages": [],
|
||||
"stdout": "",
|
||||
"stderr": "",
|
||||
"execution_time_ms": 54
|
||||
}
|
||||
122
.manus/db/db-query-1770298928415.json
Normal file
122
.manus/db/db-query-1770298928415.json
Normal file
@@ -0,0 +1,122 @@
|
||||
{
|
||||
"query": "SHOW COLUMNS FROM sequences;",
|
||||
"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 sequences;",
|
||||
"rows": [
|
||||
{
|
||||
"Field": "id",
|
||||
"Type": "int(11)",
|
||||
"Null": "NO",
|
||||
"Key": "PRI",
|
||||
"Default": "NULL",
|
||||
"Extra": "auto_increment"
|
||||
},
|
||||
{
|
||||
"Field": "formationId",
|
||||
"Type": "int(11)",
|
||||
"Null": "NO",
|
||||
"Key": "",
|
||||
"Default": "NULL",
|
||||
"Extra": ""
|
||||
},
|
||||
{
|
||||
"Field": "nom",
|
||||
"Type": "varchar(255)",
|
||||
"Null": "NO",
|
||||
"Key": "",
|
||||
"Default": "NULL",
|
||||
"Extra": ""
|
||||
},
|
||||
{
|
||||
"Field": "lieu",
|
||||
"Type": "varchar(500)",
|
||||
"Null": "NO",
|
||||
"Key": "",
|
||||
"Default": "NULL",
|
||||
"Extra": ""
|
||||
},
|
||||
{
|
||||
"Field": "capaciteMax",
|
||||
"Type": "int(11)",
|
||||
"Null": "NO",
|
||||
"Key": "",
|
||||
"Default": "12",
|
||||
"Extra": ""
|
||||
},
|
||||
{
|
||||
"Field": "dateBlocage",
|
||||
"Type": "datetime",
|
||||
"Null": "YES",
|
||||
"Key": "",
|
||||
"Default": "NULL",
|
||||
"Extra": ""
|
||||
},
|
||||
{
|
||||
"Field": "statut",
|
||||
"Type": "enum('ouverte','bloquee','terminee')",
|
||||
"Null": "NO",
|
||||
"Key": "",
|
||||
"Default": "ouverte",
|
||||
"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": "publicCible",
|
||||
"Type": "enum('directeur','chef_service','autre','tous')",
|
||||
"Null": "YES",
|
||||
"Key": "",
|
||||
"Default": "tous",
|
||||
"Extra": ""
|
||||
},
|
||||
{
|
||||
"Field": "formateur",
|
||||
"Type": "varchar(255)",
|
||||
"Null": "YES",
|
||||
"Key": "",
|
||||
"Default": "NULL",
|
||||
"Extra": ""
|
||||
},
|
||||
{
|
||||
"Field": "formateurId",
|
||||
"Type": "int(11)",
|
||||
"Null": "YES",
|
||||
"Key": "",
|
||||
"Default": "NULL",
|
||||
"Extra": ""
|
||||
},
|
||||
{
|
||||
"Field": "qrCodeToken",
|
||||
"Type": "varchar(64)",
|
||||
"Null": "YES",
|
||||
"Key": "",
|
||||
"Default": "NULL",
|
||||
"Extra": ""
|
||||
},
|
||||
{
|
||||
"Field": "qrCodeFormateurToken",
|
||||
"Type": "varchar(255)",
|
||||
"Null": "YES",
|
||||
"Key": "",
|
||||
"Default": "NULL",
|
||||
"Extra": ""
|
||||
}
|
||||
],
|
||||
"messages": [],
|
||||
"stdout": "Field\tType\tNull\tKey\tDefault\tExtra\nid\tint(11)\tNO\tPRI\tNULL\tauto_increment\nformationId\tint(11)\tNO\t\tNULL\t\nnom\tvarchar(255)\tNO\t\tNULL\t\nlieu\tvarchar(500)\tNO\t\tNULL\t\ncapaciteMax\tint(11)\tNO\t\t12\t\ndateBlocage\tdatetime\tYES\t\tNULL\t\nstatut\tenum('ouverte','bloquee','terminee')\tNO\t\touverte\t\ncreatedAt\ttimestamp\tNO\t\tCURRENT_TIMESTAMP\t\nupdatedAt\ttimestamp\tNO\t\tCURRENT_TIMESTAMP\tDEFAULT_GENERATED on update CURRENT_TIMESTAMP\npublicCible\tenum('directeur','chef_service','autre','tous')\tYES\t\ttous\t\nformateur\tvarchar(255)\tYES\t\tNULL\t\nformateurId\tint(11)\tYES\t\tNULL\t\nqrCodeToken\tvarchar(64)\tYES\t\tNULL\t\nqrCodeFormateurToken\tvarchar(255)\tYES\t\tNULL\t\n",
|
||||
"stderr": "",
|
||||
"execution_time_ms": 57
|
||||
}
|
||||
40
.manus/db/db-query-1770298942498.json
Normal file
40
.manus/db/db-query-1770298942498.json
Normal file
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"query": "SELECT id, nom, qrCodeToken, qrCodeFormateurToken FROM sequences LIMIT 5;",
|
||||
"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 id, nom, qrCodeToken, qrCodeFormateurToken FROM sequences LIMIT 5;",
|
||||
"rows": [
|
||||
{
|
||||
"id": "30001",
|
||||
"nom": "Groupe A",
|
||||
"qrCodeToken": "78172a40ea01dda8843d80592adcaa8562dba6faee3c8e8db9232c32f63b17b2",
|
||||
"qrCodeFormateurToken": "NULL"
|
||||
},
|
||||
{
|
||||
"id": "60001",
|
||||
"nom": "Groupe C",
|
||||
"qrCodeToken": "55b8210ef0712422f1749ef901b8c9901017de4610a78c4b2da34edfcc125330",
|
||||
"qrCodeFormateurToken": "NULL"
|
||||
},
|
||||
{
|
||||
"id": "90002",
|
||||
"nom": "Groupe B",
|
||||
"qrCodeToken": "NULL",
|
||||
"qrCodeFormateurToken": "NULL"
|
||||
},
|
||||
{
|
||||
"id": "120001",
|
||||
"nom": "Groupe D",
|
||||
"qrCodeToken": "NULL",
|
||||
"qrCodeFormateurToken": "NULL"
|
||||
},
|
||||
{
|
||||
"id": "150001",
|
||||
"nom": "Groupe 1",
|
||||
"qrCodeToken": "NULL",
|
||||
"qrCodeFormateurToken": "NULL"
|
||||
}
|
||||
],
|
||||
"messages": [],
|
||||
"stdout": "id\tnom\tqrCodeToken\tqrCodeFormateurToken\n30001\tGroupe A\t78172a40ea01dda8843d80592adcaa8562dba6faee3c8e8db9232c32f63b17b2\tNULL\n60001\tGroupe C\t55b8210ef0712422f1749ef901b8c9901017de4610a78c4b2da34edfcc125330\tNULL\n90002\tGroupe B\tNULL\tNULL\n120001\tGroupe D\tNULL\tNULL\n150001\tGroupe 1\tNULL\tNULL\n",
|
||||
"stderr": "",
|
||||
"execution_time_ms": 54
|
||||
}
|
||||
9
.manus/db/db-query-1770370200873.json
Normal file
9
.manus/db/db-query-1770370200873.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"query": "UPDATE sequences SET qrCodeFormateurToken = '11cbbb5039e8d5f4f8b7c09a30c8e55d5a9a4d3c0ce9de11348aa7b9d5f7d0bc' WHERE id = 20;",
|
||||
"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 UPDATE sequences SET qrCodeFormateurToken = '11cbbb5039e8d5f4f8b7c09a30c8e55d5a9a4d3c0ce9de11348aa7b9d5f7d0bc' WHERE id = 20;",
|
||||
"rows": [],
|
||||
"messages": [],
|
||||
"stdout": "",
|
||||
"stderr": "",
|
||||
"execution_time_ms": 289
|
||||
}
|
||||
8
.manus/db/db-query-error-1770298268333.json
Normal file
8
.manus/db/db-query-error-1770298268333.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"query": "INSERT INTO datesFormation (sequenceId, dateDebut, dateFin, heureDebut, heureFin) VALUES (2, CURDATE(), CURDATE(), '09:00:00', '17:00:00');",
|
||||
"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 INSERT INTO datesFormation (sequenceId, dateDebut, dateFin, heureDebut, heureFin) VALUES (2, CURDATE(), CURDATE(), '09:00:00', '17:00:00');",
|
||||
"returncode": 1,
|
||||
"logs": [
|
||||
"ERROR 1054 (42S22) at line 1: Unknown column 'heureDebut' in 'field list'"
|
||||
]
|
||||
}
|
||||
8
.manus/db/db-query-error-1770298273592.json
Normal file
8
.manus/db/db-query-error-1770298273592.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"query": "INSERT INTO datesFormation (sequenceId, dateDebut, dateFin) VALUES (2, CURDATE(), CURDATE());",
|
||||
"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 INSERT INTO datesFormation (sequenceId, dateDebut, dateFin) VALUES (2, CURDATE(), CURDATE());",
|
||||
"returncode": 1,
|
||||
"logs": [
|
||||
"ERROR 1364 (HY000) at line 1: Field 'ordre' doesn't have a default value"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user