Skip to content

Commit

Permalink
ignore this for sqlite which does not like a pk field being added
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidGoodwin committed Apr 13, 2021
1 parent 2edabc3 commit e8f3c40
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions public/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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}');
}

0 comments on commit e8f3c40

Please sign in to comment.