diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f034cd0..5376959a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,23 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com), and this project adheres to [Semantic Versioning](https://semver.org). +## [Unreleased] +### Added +* *Nothing* + +### Changed +* *Nothing* + +### Deprecated +* *Nothing* + +### Removed +* *Nothing* + +### Fixed +* [#968](https://github.com/shlinkio/shlink/issues/968) Fixed index error in MariaDB while updating to v2.5.0. + + ## [2.5.0] - 2021-01-17 ### Added * [#795](https://github.com/shlinkio/shlink/issues/795) and [#882](https://github.com/shlinkio/shlink/issues/882) Added new roles system to API keys. diff --git a/data/migrations/Version20210102174433.php b/data/migrations/Version20210102174433.php index 95ee62fe..835fcbda 100644 --- a/data/migrations/Version20210102174433.php +++ b/data/migrations/Version20210102174433.php @@ -25,7 +25,7 @@ final class Version20210102174433 extends AbstractMigration $table->setPrimaryKey(['id']); $table->addColumn('role_name', Types::STRING, [ - 'length' => 256, + 'length' => 255, 'notnull' => true, ]); $table->addColumn('meta', Types::JSON, [ diff --git a/data/migrations/Version20210118153932.php b/data/migrations/Version20210118153932.php new file mode 100644 index 00000000..e17ff533 --- /dev/null +++ b/data/migrations/Version20210118153932.php @@ -0,0 +1,26 @@ +getTable('api_key_roles'); + $nameColumn = $rolesTable->getColumn('role_name'); + $nameColumn->setLength(255); + } + + public function down(Schema $schema): void + { + } +} diff --git a/module/Rest/config/entities-mappings/Shlinkio.Shlink.Rest.Entity.ApiKeyRole.php b/module/Rest/config/entities-mappings/Shlinkio.Shlink.Rest.Entity.ApiKeyRole.php index 9c6355e3..b7787b1a 100644 --- a/module/Rest/config/entities-mappings/Shlinkio.Shlink.Rest.Entity.ApiKeyRole.php +++ b/module/Rest/config/entities-mappings/Shlinkio.Shlink.Rest.Entity.ApiKeyRole.php @@ -24,7 +24,7 @@ return static function (ClassMetadata $metadata, array $emConfig): void { $builder->createField('roleName', Types::STRING) ->columnName('role_name') - ->length(256) + ->length(255) ->nullable(false) ->build();