Schema tool does not dump correct sql after upgrade from 2.11 to 2.12 #6972

Closed
opened 2026-01-22 15:42:25 +01:00 by admin · 1 comment
Owner

Originally created by @jaroslavlibal on GitHub (Apr 27, 2022).

BC Break Report

Q A
BC Break yes
Version 2.12.0

Summary

The new "listing" mode for SQL statements dumping removes semicolons at the end of the statements and adds an asterisk prefix to each line.

https://github.com/doctrine/orm/pull/9019/files#diff-7579891fde50fb7e38d285004486c0210492efdbdc00815a978e053ff3cb0017R93

This new type of output significantly complicates the possibility of copying SQL statements.

Previous behavior

The following SQL statements will be executed:

CREATE TABLE authorized_identity (id UUID NOT NULL, identity_id UUID NOT NULL, PRIMARY KEY(id));

Current behavior

The following SQL statements will be executed:

* CREATE TABLE authorized_identity (id UUID NOT NULL, identity_id UUID NOT NULL, PRIMARY KEY(id))
Originally created by @jaroslavlibal on GitHub (Apr 27, 2022). ### BC Break Report | Q | A |------------ | ------ | BC Break | yes | Version | 2.12.0 #### Summary The new "listing" mode for SQL statements dumping removes semicolons at the end of the statements and adds an asterisk prefix to each line. https://github.com/doctrine/orm/pull/9019/files#diff-7579891fde50fb7e38d285004486c0210492efdbdc00815a978e053ff3cb0017R93 This new type of output significantly complicates the possibility of copying SQL statements. #### Previous behavior The following SQL statements will be executed: CREATE TABLE authorized_identity (id UUID NOT NULL, identity_id UUID NOT NULL, PRIMARY KEY(id)); #### Current behavior The following SQL statements will be executed: * CREATE TABLE authorized_identity (id UUID NOT NULL, identity_id UUID NOT NULL, PRIMARY KEY(id))
admin closed this issue 2026-01-22 15:42:26 +01:00
Author
Owner

@derrabus commented on GitHub (Apr 27, 2022):

See #9679

@derrabus commented on GitHub (Apr 27, 2022): See #9679
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#6972