0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-19 19:22:14 +02:00

schema changes for https://github.com/postfixadmin/postfixadmin/pull/484 - changing vacation.subject and vacation.text to be utf8mb4

This commit is contained in:
David Goodwin 2021-05-07 19:52:20 +01:00
parent 65d2f17905
commit df34c100ea

View File

@ -2017,3 +2017,17 @@ function upgrade_1844()
_db_add_field('domain_admins', 'id', '{AUTOINCREMENT} {PRIMARY}');
}
function upgrade_1845()
{
# See: https://github.com/postfixadmin/postfixadmin/pull/484
#
if(!db_mysql()) {
return;
}
$vacation = table_by_key('vacation');
db_query("alter table $vacation change body body text charset utf8mb4 not null");
db_query("alter table $vacation change subject subject varchar(255) charset utf8mb4 not null");
}