Skip to content

Commit

Permalink
Fixed issue #5939: Error by creating a new question
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Mar 26, 2012
1 parent 13d06a4 commit f8850fb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions application/helpers/update/upgrade-all_helper.php
Expand Up @@ -101,9 +101,6 @@ function db_upgrade_all($oldversion) {
);
Yii::app()->db->createCommand()->createTable('{{expression_errors}}',$fields);
}

if ($oldversion < 155)
Yii::app()->db->createCommand()->addColumn('{{surveys_languagesettings}}', 'surveyls_attributecaptions', "text NOT NULL default ''");
}

function upgrade_question_attributes148()
Expand Down
2 changes: 1 addition & 1 deletion installer/sql/create-mssql.sql
Expand Up @@ -341,7 +341,7 @@ CREATE TABLE [prefix_surveys_languagesettings] (
[surveyls_email_confirm_subj] VARCHAR(255) NULL,
[surveyls_email_confirm] TEXT NULL,
[surveyls_dateformat] INT NOT NULL DEFAULT 1,
[surveyls_attributecaptions] VARCHAR(255) NULL,
[surveyls_attributecaptions] TEXT NULL,
[email_admin_notification_subj] VARCHAR(255) NULL,
[email_admin_notification] TEXT NULL,
[email_admin_responses_subj] VARCHAR(255) NULL,
Expand Down
2 changes: 1 addition & 1 deletion installer/sql/create-pgsql.sql
Expand Up @@ -336,7 +336,7 @@ CREATE TABLE prefix_surveys_languagesettings (
surveyls_email_confirm_subj character varying(255),
surveyls_email_confirm text,
surveyls_dateformat integer DEFAULT 1 NOT NULL,
surveyls_attributecaptions character varying(255) NULL,
surveyls_attributecaptions text,
email_admin_notification_subj character varying(255),
email_admin_notification text,
email_admin_responses_subj character varying(255),
Expand Down

0 comments on commit f8850fb

Please sign in to comment.