Need to check for a column in a table
I'm doing an addon and I an install plugin I need to do the following in a mySQL query or a series of queries.
Psuedocode:
add a new column
check for an existing column from an old version of the addon.
If the old column exists
Move the data for all records to the new column
Anyone know if this is possible and if so how would I go about it?
|