Skip to content

Commit

Permalink
Fixed issue #17917: A non-recoverable error happened during the updat…
Browse files Browse the repository at this point in the history
…e when using MSSQL (#2275)
  • Loading branch information
Shnoulle committed Mar 1, 2022
1 parent cb923e2 commit 5896566
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion application/config/version.php
Expand Up @@ -12,7 +12,7 @@
*/

$config['versionnumber'] = '5.3.0';
$config['dbversionnumber'] = 481;
$config['dbversionnumber'] = 482;
$config['buildnumber'] = '';
$config['updatable'] = true;
$config['templateapiversion'] = 3;
Expand Down
2 changes: 1 addition & 1 deletion application/helpers/update/updates/Update_480.php
Expand Up @@ -19,7 +19,7 @@ public function up()
'{{message}}',
[
'id' => "integer NOT NULL",
'language' => "string(16)",
'language' => "string(50) NOT NULL default ''",
'translation' => "text",
],
$this->options
Expand Down
14 changes: 14 additions & 0 deletions application/helpers/update/updates/Update_482.php
@@ -0,0 +1,14 @@
<?php

namespace LimeSurvey\Helpers\Update;

class Update_482 extends DatabaseUpdateBase
{
/**
* @inheritDoc
*/
public function up()
{
\alterColumn('{{message}}', 'language', 'string(50)', false, '');
}
}
2 changes: 1 addition & 1 deletion installer/create-database.php
Expand Up @@ -1140,7 +1140,7 @@ function populateDatabase($oDB)
'{{message}}',
[
'id' => "integer NOT NULL",
'language' => "string(16)",
'language' => "string(50) NOT NULL default ''",
'translation' => "text",
],
$options
Expand Down

0 comments on commit 5896566

Please sign in to comment.