Yii Framework Forum: Updating Table Structure and Model - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Updating Table Structure and Model Update Table Structure and Model if to add a new column Rate Topic: -----

#1 User is offline   Cihan 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 46
  • Joined: 02-November 10

Posted 23 December 2010 - 06:12 AM

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
0

#2 User is offline   PeRoChAk 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 589
  • Joined: 26-November 10
  • Location:Sialkot, Pakistan

Posted 23 December 2010 - 06:49 AM

hi,

use Gii and then check the difference.

Overwrite if needed.


thanks
Cheers
PeRoChAk
Cheap Domain & Hosting - Web & App Design - Web Application Development

My Page
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users