mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2024-09-20 03:36:20 +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:
parent
65d2f17905
commit
df34c100ea
@ -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");
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user