- Modification du schéma apprenants : codeEtablissement et fonction en VARCHAR nullable (au lieu de NOT NULL et ENUM) - Suppression de la colonne isActive qui n'existe pas dans la base de données - Modification du schéma sequences : ajout des statuts "bloquee" et "terminee" dans l'ENUM - Suppression de la colonne dateBloquage qui n'existe pas dans la base de données - Le dashboard admin fonctionne maintenant correctement sans erreurs de requêtes SQL
74 lines
2.1 KiB
JSON
74 lines
2.1 KiB
JSON
{
|
|
"query": "SHOW COLUMNS FROM apprenants;",
|
|
"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 apprenants;",
|
|
"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": "prenom",
|
|
"Type": "varchar(255)",
|
|
"Null": "NO",
|
|
"Key": "",
|
|
"Default": "NULL",
|
|
"Extra": ""
|
|
},
|
|
{
|
|
"Field": "email",
|
|
"Type": "varchar(320)",
|
|
"Null": "NO",
|
|
"Key": "UNI",
|
|
"Default": "NULL",
|
|
"Extra": ""
|
|
},
|
|
{
|
|
"Field": "codeEtablissement",
|
|
"Type": "varchar(50)",
|
|
"Null": "NO",
|
|
"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": "fonction",
|
|
"Type": "enum('directeur','chef_service','autre')",
|
|
"Null": "NO",
|
|
"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\nprenom\tvarchar(255)\tNO\t\tNULL\t\nemail\tvarchar(320)\tNO\tUNI\tNULL\t\ncodeEtablissement\tvarchar(50)\tNO\t\tNULL\t\ncreatedAt\ttimestamp\tNO\t\tCURRENT_TIMESTAMP\t\nupdatedAt\ttimestamp\tNO\t\tCURRENT_TIMESTAMP\tDEFAULT_GENERATED on update CURRENT_TIMESTAMP\nfonction\tenum('directeur','chef_service','autre')\tNO\t\tNULL\t\n",
|
|
"stderr": "",
|
|
"execution_time_ms": 51
|
|
} |