diff --git a/application/controllers/admin/tokens.php b/application/controllers/admin/tokens.php index 232383a1506..36cd63e85e2 100644 --- a/application/controllers/admin/tokens.php +++ b/application/controllers/admin/tokens.php @@ -1096,7 +1096,7 @@ public function updatetokenattributes($iSurveyId) $i++; } $tokenattributefieldnames[] = 'attribute_'.$i; - Yii::app()->db->createCommand(Yii::app()->db->getSchema()->addColumn("{{tokens_".intval($iSurveyId)."}}", 'attribute_'.$i, 'string(255)'))->execute(); + Yii::app()->db->createCommand(Yii::app()->db->getSchema()->addColumn("{{tokens_".intval($iSurveyId)."}}", 'attribute_'.$i, 'text'))->execute(); } Yii::app()->db->schema->getTable($oSurvey->tokensTableName, true); // Refresh schema cache just in case the table existed in the past