diff --git a/CHANGELOG.md b/CHANGELOG.md index 29710e9c6..68096c042 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## [v2.5.1](https://github.com/nextcloud/forms/tree/v2.5.1) (2022-05-26) + +[Full Changelog](https://github.com/nextcloud/forms/compare/v2.5.0...v2.5.1) + +### Fixed + +- Fix upgrading + [\#1212](https://github.com/nextcloud/forms/pull/1212) ([nickvergessen](https://github.com/nickvergessen)) + + ## [v2.5.0](https://github.com/nextcloud/forms/tree/v2.5.0) (2022-04-08) [Full Changelog](https://github.com/nextcloud/forms/compare/v2.4.0...v2.5.0) diff --git a/appinfo/info.xml b/appinfo/info.xml index 57228bb78..5cc514f9c 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -11,7 +11,7 @@ - **🔒 Data under your control!** Unlike in Google Forms, Typeform, Doodle and others, the survey info and responses are kept private on your instance. - **🙋 Get involved!** We have lots of stuff planned like more question types, collaboration on forms, [and much more](https://github.com/nextcloud/forms/milestones)! ]]> - 2.5.0 + 2.5.1 agpl Affan Hussain diff --git a/lib/Migration/Version010200Date20200323141300.php b/lib/Migration/Version010200Date20200323141300.php index 56d3387ba..b44d06442 100644 --- a/lib/Migration/Version010200Date20200323141300.php +++ b/lib/Migration/Version010200Date20200323141300.php @@ -92,7 +92,7 @@ public function changeSchema(IOutput $output, \Closure $schemaClosure, array $op 'notnull' => true, 'length' => 256, ]); - $table->addColumn('description', Types::STRING, [ + $table->addColumn('description', Types::TEXT, [ 'notnull' => false, 'length' => 8192, ]); @@ -200,7 +200,7 @@ public function changeSchema(IOutput $output, \Closure $schemaClosure, array $op $table->addColumn('question_id', Types::INTEGER, [ 'notnull' => true, ]); - $table->addColumn('text', Types::STRING, [ + $table->addColumn('text', Types::TEXT, [ 'notnull' => true, 'length' => 4096, ]); @@ -351,7 +351,7 @@ public function postSchemaChange(IOutput $output, \Closure $schemaClosure, array $id_mapping['currentSubmission'] = $qb_restore->getLastInsertId(); //Store submission-id to connect answers to submission. } $last_vote = $vote; - + //In case the old Answer would have been longer than current possible length, create a warning and shorten text to avoid Error on upgrade. if (strlen($vote['vote_answer']) > 4096) { $output->warning("Answer-text is too long for new Database: '" . $vote['vote_answer'] . "'"); diff --git a/package-lock.json b/package-lock.json index 8315d729b..4d5969ba4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "forms", - "version": "2.5.0", + "version": "2.5.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "forms", - "version": "2.5.0", + "version": "2.5.1", "license": "AGPL-3.0", "dependencies": { "@nextcloud/auth": "^1.3.0", diff --git a/package.json b/package.json index 4eea3ffb6..df0e6e1ab 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "forms", "description": "Forms app for nextcloud", - "version": "2.5.0", + "version": "2.5.1", "repository": { "type": "git", "url": "git+https://github.com/nextcloud/forms.git"