Yii Framework Forum: Cannot Call Cdbmigration->Createtable Without Columns - Yii Framework Forum

Jump to content

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

Cannot Call Cdbmigration->Createtable Without Columns Rate Topic: -----

#1 User is offline   le_top 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 280
  • Joined: 08-June 10
  • Location:France

Posted 01 July 2013 - 06:39 AM

Hi
Just reporting on a corner case behavior.
CDbMigration->createTable with a liste of columns that is empty is not possible -> the generated SQL is not valid.

My workaround: create the table with one column, and remove the column if needed.

My goal is to first create the table and then call 'addColumn' for each column that needs to be added.
0

#2 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 3,308
  • Joined: 17-January 09
  • Location:Russia

Posted 15 July 2013 - 01:53 PM

Seems to be valid. Can you report it to https://github.com/yiisoft/yii/issues

Thanks.
Yii 1.1 Application Development Cookbook

Enjoying Yii? Star us at github: 1.1 and 2.0.
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