Primary Key missing from the "UserAuthenticationType" table

Created on 21 March 2023, over 1 year ago
Updated 28 March 2023, over 1 year ago

Problem/Motivation

In a Galera MariaDB cluster with innoDB it is strongly recommended to have primary keys on the tables.

Steps to reproduce :

Importing a SQL dump :
mysql -u root database_name < database_name.sql

On the table "UserAuthenticationType" :

ERROR 1173 (42000) at line 25: This table type requires a primary key

View the database configuration :

show global variables like 'innodb_force_primary_key';
+--------------------------+-------+
| Variable_name            | Value |
+--------------------------+-------+
| innodb_force_primary_key | ON    |
+--------------------------+-------+

Proposed resolution

Add the primary key to the table :
PRIMARY KEY (`uid`)

🐛 Bug report
Status

Fixed

Version

5.0

Component

Code

Created by

🇨🇭Switzerland CirrusLab

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024