You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With commit 3f62f95 the AddColumnChange was modified to not include NOT NULL constraints in the initial ALTER TABLE ... ADD statement but instead use an "embedded" AlterColumnChange to generate an ALTER TABLE ... ALTER COLUMN statement to be executed separately.
However when creating that AlterColumnChange, the schema property from the original AddColumnChange is not copied over to the new AlterColumnChange which means that when using a non-default schema the ALTER TABLE ... ALTER COLUMN targets the wrong schema.
The text was updated successfully, but these errors were encountered:
…2781)
- Update AddColumnChange Test to include Schema
- Update the AddColumnChange test case to include a non-default schema & catalog, covering those two fields of the AddColumnChange.
- Copy additional fields to AddNotNullConstraintChange in AddColumnChange
- The original implementation delegating the creation of a NOT NULL constraint within the AddColumnChange to the AddNotNullConstraintChange was flawed in that it ignored some properties present both in the ConstraintsConfig and in the AddNotNullConstraintChange.
- Exclude the "catalog" property from the AddColumnGeneratorTest since I'm not quite certain of the expected outcome.
Co-authored-by: Nathan Voxland <nathan@voxland.net>
With commit 3f62f95 the
AddColumnChange
was modified to not include NOT NULL constraints in the initialALTER TABLE ... ADD
statement but instead use an "embedded"AlterColumnChange
to generate anALTER TABLE ... ALTER COLUMN
statement to be executed separately.However when creating that
AlterColumnChange
, the schema property from the originalAddColumnChange
is not copied over to the newAlterColumnChange
which means that when using a non-default schema theALTER TABLE ... ALTER COLUMN
targets the wrong schema.The text was updated successfully, but these errors were encountered: