ignore this for sqlite which does not like a pk field being added

This commit is contained in:
David Goodwin committed 2021-04-13 21:26:11 +01:00
1 parent 2edabc3e03
commit e8f3c40442
1 file changed
+6 -3
+6 -3
View File
@@ -1890,9 +1890,7 @@ function upgrade_1836_mysql()
*/
function upgrade_1837()
{
global $CONF;
if ($CONF['database_type'] == 'sqlite') {
if (db_sqlite()) {
return;
}
# alternative contact means to reset a forgotten password
@@ -2012,5 +2010,10 @@ function upgrade_1843()
function upgrade_1844()
{
# See:https://github.com/postfixadmin/postfixadmin/issues/475 - add pkey to domain_admins.
if (db_sqlite()) {
return;
}
_db_add_field('domain_admins', 'id', '{AUTOINCREMENT} {PRIMARY}');
}