Skip to content

Commit

Permalink
DEV: fix failing tests: (#1003)
Browse files Browse the repository at this point in the history
* DEV: run all travis tests to see more errors

* DEV: fix tests failing: defaultvalues pk

* DEV: stop travis on failure

* DEV: remove unnecessary lines
  • Loading branch information
TonisOrmisson authored and olleharstedt committed Feb 12, 2018
1 parent 6a66c1b commit 2a078a9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions application/helpers/update/updatedb_helper.php
Expand Up @@ -1087,6 +1087,10 @@ function db_upgrade_all($iOldDBVersion, $bSilent = false)
upgradeSurveyTimings350();

$oDB->createCommand()->update('{{settings_global}}', array('stg_value'=>350), "stg_name='DBVersion'");

$oDB->createCommand()->dropPrimaryKey('{{defaultvalues_pk}}','{{defaultvalues}}');
$oDB->createCommand()->addPrimaryKey('{{defaultvalues_pk}}', '{{defaultvalues}}', ['qid', 'specialtype', 'scale_id', 'sqid']);

$oTransaction->commit();
}

Expand Down

0 comments on commit 2a078a9

Please sign in to comment.