Skip to content

Doctrine doesn't truncate sequences name to 63 characters #2993

Closed
@ComteZeroVD

Description

@ComteZeroVD

Hi everyone,

"doctrine:schema:update --dump-sql" generates this SQL

CREATE SEQUENCE myst_survey_instances_payroll_item_id_myst_survey_instances_payroll_item_seq INCREMENT BY 1 MINVALUE 1 START 1;

Why isn't the sequence name truncated to 63 characters ? It should truncate beforehand to detect that this sequence already exists in my database.
Now I can't use "doctrine:schema:update --force" because Postgre truncate to "myst_survey_inst
ances_payroll_item_id_myst_survey_instances_pay" and of course, this sequence already exists.

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