Updating Table Structure and Model

Hello every body,

What is the best way to (auto) Update Table Structure and Model if i want to add a new column in the table? Has it a better way as to make this manuel? With gii we can create the models, but not update them if somethign change.

Thaknks for helping.

cihan

hi,

use Gii and then check the difference.

Overwrite if needed.

thanks