Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.2.2
-
Fix Version/s: None
-
Component/s: Migrations
-
Labels:None
Description
When trying to rename a column that is NOT NULL and has no default value, Doctrine generates this SQL:
ALTER TABLE `article` CHANGE `typeid` `listid` INT DEFAULT NULL NOT NULL
Which fails. It should be:
ALTER TABLE `article` CHANGE `typeid` `listid` INT NOT NULL
Activity
Jack Sleight
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Description |
When trying to rename a column that is NOT NULL and has no default value, Doctrine generates this SQL: {code}ALTER TABLE `article` CHANGE `typeid` `listid` INT DEFAULT NULL NOT NULL{code} Which fails. It should be: {code}ALTER TABLE `at_article` CHANGE `journalid` `listid` INT NOT NULL{code} |
When trying to rename a column that is NOT NULL and has no default value, Doctrine generates this SQL: {code}ALTER TABLE `article` CHANGE `typeid` `listid` INT DEFAULT NULL NOT NULL{code} Which fails. It should be: {code}ALTER TABLE `article` CHANGE `typeid` `listid` INT NOT NULL{code} |
Matthew Hughes
made changes -
| Attachment | DC-768.patch [ 10922 ] |