What is the safest way to add more columns to any table of the database? In my case, _user_ table.
Just add them normally with APPEND TABLE ..., nothing will break since we are using prepared statements with chosen list of columns.
I have for example modified user_chat table to have field active which is set to true if user is in that group chat and false if he's not (bot tracks newchatmembers and leftchatmember updates and updates data in that table).
Great! thanks @jacklul
Most helpful comment
Just add them normally with
APPEND TABLE ..., nothing will break since we are using prepared statements with chosen list of columns.I have for example modified
user_chattable to have fieldactivewhich is set totrueif user is in that group chat andfalseif he's not (bot tracks newchatmembers and leftchatmember updates and updates data in that table).