From a75b05120cab2c0d6d43e64609167ed853b44ffb Mon Sep 17 00:00:00 2001 From: Yuriy Bakhtin Date: Wed, 10 Mar 2021 14:42:58 +0300 Subject: [PATCH] Fix file hash column length (#4956) --- CHANGELOG.md | 1 + .../migrations/m210310_103412_fix_hash.php | 28 +++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 protected/humhub/modules/file/migrations/m210310_103412_fix_hash.php diff --git a/CHANGELOG.md b/CHANGELOG.md index 37cbfb3c5b..800d490d37 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ HumHub Changelog - Fix #4942: MemberOf Display in LDAP CLI Show User Details - Fix #4465: LDAP PHP 8 incompatibility (multiPageSearch) - Fix #4946: Fix migration of the default permissions +- Fix #4956: Fix file hash column length 1.8.0 (March 1, 2021) diff --git a/protected/humhub/modules/file/migrations/m210310_103412_fix_hash.php b/protected/humhub/modules/file/migrations/m210310_103412_fix_hash.php new file mode 100644 index 0000000000..58642a46fe --- /dev/null +++ b/protected/humhub/modules/file/migrations/m210310_103412_fix_hash.php @@ -0,0 +1,28 @@ +update('file', ['hash_sha1' => NULL]); + $this->alterColumn('file', 'hash_sha1', $this->string(40)->null()); + } + + /** + * {@inheritdoc} + */ + public function safeDown() + { + echo "m210310_103412_fix_hash cannot be reverted.\n"; + + return false; + } +}