{"data":{"id":"magento2-40242","source":"github-pr","sourceRef":"magento/magento2#40242","title":"Prevent `db_schema.xml` declarations with `comment=\"\"` from breaking zero downtime deployments","pr":{"number":40242,"url":"https://github.com/magento/magento2/pull/40242","author":"convenient","mergedAt":"2025-12-23T16:16:29Z","mergeCommit":"aaf013582414aed500cbf071f0b988b68fb72f98","headCommit":"3b022bb34fadf0677dddbedeb0f518d0d3a2c39c","baseRef":"2.4-develop","diffSha256":"d68636aee009ed8216ce22cd089e272a7b6c346258cfdaec41a2d12a42360fb4"},"issues":[{"number":40254,"url":"https://github.com/magento/magento2/issues/40254","title":"[Issue] Prevent `db_schema.xml` declarations with `comment=\"\"` from breaking zero downtime deployments","labels":["Area: Framework","Component: Framework/Setup","Issue: Confirmed","Priority: P2","Progress: done","Reported on 2.4.x","Reproduced on 2.4.x","Triage: Dev.Experience"],"kind":"pr-derived"}],"fixedIn":"2.4.9","containingTags":["2.4.9"],"reportedOn":null,"codeMatch":{"2.4.6":"conflict","2.4.6-p1":"conflict","2.4.6-p2":"conflict","2.4.6-p3":"conflict","2.4.6-p4":"conflict","2.4.6-p5":"conflict","2.4.6-p6":"conflict","2.4.6-p7":"conflict","2.4.6-p8":"conflict","2.4.6-p9":"conflict","2.4.6-p10":"conflict","2.4.6-p11":"conflict","2.4.6-p12":"conflict","2.4.6-p13":"conflict","2.4.6-p14":"conflict","2.4.6-p15":"conflict","2.4.7":"conflict","2.4.7-p1":"conflict","2.4.7-p2":"conflict","2.4.7-p3":"conflict","2.4.7-p4":"conflict","2.4.7-p5":"conflict","2.4.7-p6":"conflict","2.4.7-p7":"conflict","2.4.7-p8":"conflict","2.4.7-p9":"conflict","2.4.7-p10":"conflict","2.4.8":"conflict","2.4.8-p1":"conflict","2.4.8-p2":"conflict","2.4.8-p3":"conflict","2.4.8-p4":"conflict","2.4.8-p5":"conflict","2.4.9":"conflict"},"affectedVersions":[],"components":["magento/framework"],"files":[{"path":"lib/internal/Magento/Framework/Setup/Declaration/Schema/Dto/ElementFactory.php","change":"modified","package":"magento/framework"}],"stripped":{"tests":[],"docs":[],"outsideCode":[]},"linesChanged":24,"mergeBatched":false,"excluded":null,"sections":{"description":null,"stepsToReproduce":null,"expectedResult":null,"actualResult":null,"source":null},"signatures":[],"labels":{"area":["Framework"],"component":["Framework/Setup"],"priority":"P2","severity":null,"reportedOn":["2.4.x"]},"categories":[],"triage":{"model":"@cf/cloudflare/clef","requestHash":"cb409fd4877f1aebc1bf1917922ebd73c723acdef2e56e25dd9eaf8afc4601dd","isBugfix":0.8758,"changeKind":{"choice":"bugfix","probabilities":{"bugfix":0.9327,"feature":0.0161,"refactor":0.0171,"tests_only":0.0055,"docs_only":0.0048,"dependency":0.0049,"cleanup":0.0189},"confidence":0.8493},"scope":{"score":0.7272,"probabilities":{"0":0.3855,"1":0.5018,"2":0.1127},"confidence":0.1197},"risk":{"score":0.2917,"probabilities":{"0":0.7789,"1":0.1505,"2":0.0706},"confidence":0.4515},"area":{"choice":"framework","probabilities":{"catalog":0.0078,"checkout":0.006,"customer":0.0043,"admin":0.0097,"graphql_api":0.0042,"framework":0.9522,"frontend":0.0055,"other":0.0103},"confidence":0.8939},"securityRelevant":0.005,"reportedVersion":{"choice":"unspecified","probabilities":{"2.4.0":0.0034,"2.4.0-p1":0.0038,"2.4.1":0.004,"2.4.1-p1":0.0039,"2.4.2":0.0066,"2.4.2-p1":0.0058,"2.4.2-p2":0.0074,"2.4.3":0.0099,"2.4.3-p1":0.0115,"2.4.3-p2":0.0151,"2.4.3-p3":0.0075,"2.4.4":0.0142,"2.4.4-p1":0.0091,"2.4.4-p10":0.0063,"2.4.4-p11":0.0065,"2.4.4-p12":0.0062,"2.4.4-p13":0.0067,"2.4.4-p14":0.0085,"2.4.4-p15":0.005,"2.4.4-p16":0.0066,"2.4.4-p17":0.0052,"2.4.4-p18":0.0045,"2.4.4-p2":0.0024,"2.4.4-p3":0.0027,"2.4.4-p4":0.0031,"2.4.4-p5":0.0036,"2.4.4-p6":0.0046,"2.4.4-p7":0.004,"2.4.4-p8":0.0047,"2.4.4-p9":0.0043,"2.4.5":0.0147,"2.4.5-p1":0.0135,"2.4.5-p10":0.0075,"2.4.5-p11":0.0119,"2.4.5-p12":0.0084,"2.4.5-p13":0.0077,"2.4.5-p14":0.008,"2.4.5-p15":0.0066,"2.4.5-p16":0.0079,"2.4.5-p17":0.0064,"2.4.5-p2":0.0036,"2.4.5-p3":0.0059,"2.4.5-p4":0.0051,"2.4.5-p5":0.0049,"2.4.5-p6":0.0071,"2.4.5-p7":0.0069,"2.4.5-p8":0.006,"2.4.5-p9":0.0049,"2.4.6":0.0305,"2.4.6-p1":0.024,"2.4.6-p10":0.0108,"2.4.6-p11":0.0138,"2.4.6-p12":0.0119,"2.4.6-p13":0.0118,"2.4.6-p14":0.0116,"2.4.6-p15":0.0094,"2.4.6-p2":0.0046,"2.4.6-p3":0.0082,"2.4.6-p4":0.0101,"2.4.6-p5":0.0081,"2.4.6-p6":0.0097,"2.4.6-p7":0.0093,"2.4.6-p8":0.0072,"2.4.6-p9":0.0069,"2.4.7":0.0229,"2.4.7-p1":0.0214,"2.4.7-p10":0.0112,"2.4.7-p2":0.0099,"2.4.7-p3":0.015,"2.4.7-p4":0.0143,"2.4.7-p5":0.0144,"2.4.7-p6":0.0141,"2.4.7-p7":0.0143,"2.4.7-p8":0.0102,"2.4.7-p9":0.008,"2.4.8":0.0244,"2.4.8-p1":0.0267,"2.4.8-p2":0.0237,"2.4.8-p3":0.0197,"2.4.8-p4":0.0172,"2.4.8-p5":0.0149,"2.4.9":0.0192,"unspecified":0.1865},"confidence":0.0342},"backportWorthy":{"score":1.5213,"probabilities":{"0":0.1022,"1":0.2743,"2":0.6235},"confidence":0.2117}},"curated":{"title":"Fixes db_schema.xml comment=\"\" making setup:db:status always report changes","description":"A db_schema.xml declaration with comment=\"\" will always be flagged as needing to make changes, as the database has no concept of a null versus empty string comment. This breaks zero downtime deployments using setup:db:status. ElementFactory::create now uses removeEmptyComments to remove a comment that is empty after trim.","categories":[],"author":"claude-code/opus-5.5","date":"2026-10-06","reviewedBy":null},"tests":null},"_documentation":"https://magento.watch/api","_description":"Upstream fix magento2-40242 details"}