Afnan Bashir
Afnan Bashir

Reputation: 7429

Update Model and Controllers modify DB table in Yii

I was wondering that see if you have made many changes since Gii generated your Model and CRUD. i.e you have applied many view changes ,made rbac and so on.

now what if later on you see thati.e in persons table you have to add a new entery car_no and you want CRUD to accept that change and CActiveRecord adapt changes to db..

what can be done to avoid a RE-DO? as RE-DO works for me at present :(

Thanks

Upvotes: 1

Views: 1140

Answers (1)

Alfredo Castaneda Garcia
Alfredo Castaneda Garcia

Reputation: 1659

You can edit it manually. Nothing else is needed. I have added entries to my tables hundreds of times, updated models, controller, views manually, and it has always worked perfectly.

Upvotes: 1

Related Questions