mirror of
https://github.com/humhub/humhub.git
synced 2025-01-16 21:58:17 +01:00
Fix file hash column length (#4956)
This commit is contained in:
parent
3fada821cd
commit
a75b05120c
@ -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)
|
||||
|
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
use yii\db\Migration;
|
||||
|
||||
/**
|
||||
* Class m210310_103412_fix_hash
|
||||
*/
|
||||
class m210310_103412_fix_hash extends Migration
|
||||
{
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function safeUp()
|
||||
{
|
||||
$this->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;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user