Skip to content

Database migration error: Can't create table nextcloud.oc_mail_trusted_senders #4443

@ruifung

Description

@ruifung

Expected behavior

Tell us what should happen
Migration should succeed

Actual behavior

Tell us what happens instead
Migration fails as follows:

`Updating database schema

Updated database

Doctrine\DBAL\Exception\DriverException: An exception occurred while executing 'CREATE TABLE oc_mail_trusted_senders (id INT AUTO_INCREMENT NOT NULL, email VARCHAR(255) NOT NULL, user_id VARCHAR(64) NOT NULL, UNIQUE INDEX mail_trusted_sender_uniq (email, user_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_bin` ENGINE = InnoDB ROW_FORMAT = compressed': SQLSTATE[HY000]: General error: 1005 Can't create table `nextcloud`.`oc_mail_trusted_senders` (errno: 140 "Wrong create options")`

Attempting the same query with show warnings gets the following issue:
InnoDB: PAGE_COMPRESSED table can't have ROW_TYPE=COMPRESSED

In addition, the mariaDB knowledgebase recommends using page compression instead of compressed row type.
https://mariadb.com/kb/en/innodb-compressed-row-format/

Mail app

Mail app version: 1.8.0

Mailserver or service: IMAP

Server configuration

Operating system: Ubuntu 20.04 Raspberry Pi

Web server: Caddy

Database: 10.5.8-MariaDB-1:10.5.8+maria~focal-log

PHP version: 7.4 FPM

Nextcloud Version: 20.0.5

Client configuration

Browser: N/A

Operating system: N/A

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions