by deepak garg.
To add a new field to mdl_user table follow the simple following steps:-
Step-1:- Create a field in mdl_user named GPA (name you want to add) using mysql commands. For adding this you can use any mysql client like phpmyadmin or sqlyog etc.
"ALTER TABLE "table-name" ADD COLUMN "column-name""column-value-type". "
Step-2:- Create a field in user/editlib as per your requirements but keep the name of the field same as the mdl_user table column.
Step-3:- thats it.