Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

custom_field_custom_fieldset missing primary key #10892

Closed
2 tasks done
joeldeteves opened this issue Apr 3, 2022 · 1 comment
Closed
2 tasks done

custom_field_custom_fieldset missing primary key #10892

joeldeteves opened this issue Apr 3, 2022 · 1 comment
Labels

Comments

@joeldeteves
Copy link

Debug mode

Describe the bug

The custom_field_custom_fieldset table is missing the primary key.

This causes problems on MySQL v8, in particular on cloud hosted databases like Digital Ocean which requires the primary key for replication & data integrity.

Please add a primary key to this table to resolve this issue (all other tables appear to be okay).

Thank you,

Reproduction steps

  1. Install SnipeIT
  2. Run a query for tables that are missing the primary key
  3. custom_field_custom_fieldset is missing primary key
    ...

Expected behavior

The primary key should be added to prevent replication & data integry issues on clustered setups

Screenshots

No response

Snipe-IT Version

v5.4.1 build 6746 (g3e22dce11)

Operating System

SnipeIT Docker Image

Web Server

NGINX

PHP Version

7.3

Operating System

No response

Browser

No response

Version

No response

Device

No response

Operating System

No response

Browser

No response

Version

No response

Error messages

No response

Additional context

No response

@snipe snipe added the mysql label Apr 5, 2022
@snipe snipe closed this as completed in c12ef19 Apr 5, 2022
snipe added a commit that referenced this issue Apr 5, 2022
…m_fields_pivot

Fixed #10892 - MySQL 8 compatibilty requires primary key
@joeldeteves
Copy link
Author

Thanks for the quick patch!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants