Skip to content

[Issue] Change value_id column to be unsigned in db_schema #40284

@m2-assistant

Description

@m2-assistant

This issue is automatically created based on existing pull request: #40268: Change value_id column to be unsigned in db_schema


Change value_id column to be unsigned in db_schema.xml to prevent SQLSTATE[22003]: Numeric value out of range: Out of range value for column 'value_id'

SHOW TABLE STATUS LIKE 'catalog_product_entity_varchar' \G
*************************** 1. row ***************************
            Name: catalog_product_entity_varchar
          Engine: InnoDB
         Version: 10
      Row_format: Dynamic
            Rows: 12955092
  Avg_row_length: 64
     Data_length: 840728576
 Max_data_length: 0
    Index_length: 710082560
       Data_free: 6291456
  Auto_increment: 2147485826
     Create_time: 2022-03-06 05:26:46
     Update_time: 2025-11-03 08:43:28
      Check_time: NULL
       Collation: utf8mb3_general_ci
        Checksum: NULL
  Create_options:
         Comment: Catalog Product Varchar Attribute Backend Table
Max_index_length: 0
       Temporary: N
1 row in set (0.002 sec)

Questions or comments

Under what conditions can an auto_increment value be negative?

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • README.md files for modified modules are updated and included in the pull request if any README.md predefined sections require an update
  • All automated tests passed successfully (all builds are green)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority: P3May be fixed according to the position in the backlog.

    Type

    No type

    Projects

    Status

    Ready for Development

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions