[wp-trac] [WordPress Trac] #59177: dbDelta doesn't handle changing the DEFAULT value of a column from NULL to ''

WordPress Trac noreply at wordpress.org
Wed Aug 23 15:40:02 UTC 2023


#59177: dbDelta doesn't handle changing the DEFAULT value of a column from NULL to
''
---------------------------------+-----------------------------
 Reporter:  bogdanhapcayardicom  |      Owner:  (none)
     Type:  defect (bug)         |     Status:  new
 Priority:  normal               |  Milestone:  Awaiting Review
Component:  Upgrade/Install      |    Version:  6.3
 Severity:  normal               |   Keywords:
  Focuses:                       |
---------------------------------+-----------------------------
 Shouldn't this be a strict comparison
 https://core.trac.wordpress.org/browser/trunk/src/wp-
 admin/includes/upgrade.php#L3064? Otherwise that condition will be false
 and the column will remain unchanged.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/59177>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list