WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#8937 closed defect (bug) (worksforme)

Database Upgrade Error - POST_TYPE field

Reported by: iamronen Owned by:
Milestone: 2.8 Priority: high
Severity: normal Version:
Component: Upgrade/Install Keywords:
Focuses: Cc:

Description

After upgrading a 2.01 blog to 2.7 future posts disappeared, and new future posts would also disappear into the system. They were all in the database but they could not be administered and they did not get published on the blog (when the time came).

I traced the problem to a database problem. The 'post_type' field in the database was not converted from an enum field to a varchar - as a result the "future" post type would not register (neither would "inherit" or any other status that was defined in the enum). Once I fixed that and manually updated the statuses - everything worked fine.

Though there were problems in the database upgrade process (maybe due to permission - maybe other things) so I cannot tell if this would have been resolved.

Also - in the upgrade process a little more error handling can go a long way. for example: the old 2.01 blog had outdated tabled (such as categories). The update process failed to create the newer taxonomy tables - and the continued to drop the original tables - which would have resulted in painful data loss (which did not occur because the database user did not have drop permission!). Looks like this can be improved.

Change History (1)

comment:1 Denis-de-Bernardy5 years ago

  • Resolution set to worksforme
  • Status changed from new to closed

closing as worksforme for the upgrader

see #4027 for the error checking

Note: See TracTickets for help on using tickets.