Quantcast
Channel: General developer forum
Viewing all articles
Browse latest Browse all 37670

Re: Adding a new field in table of moodle 2.4 database

$
0
0
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.


Viewing all articles
Browse latest Browse all 37670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>