Opening this against date module since the core bug is on its way, and will require work here for existing sites.

#799982: Updating D6 -> D7 fails if the D6 site has Date module applied

CommentFileSizeAuthor
#5 update_formats.patch1.53 KBkarens
#3 update_formats.patch1.3 KBkarens

Comments

karens’s picture

Just noting what needs to be done so I don't have to read through the whole issue every time I look at this:

Two date tables have been 'adopted' by core. Any existing tables got renamed to 'd6_date_formats' and 'd6_date_format_locale'. In our upgrade path we need to move any data in those tables to the new D7 tables.

spovlot’s picture

Used the following SQL to move custom date formats manually:

INSERT INTO date_format_type (`type`,title,locked)
SELECT `type`,title,locked FROM `date_format_types` WHERE locked = 0

INSERT INTO date_formats (format, type, locked)
SELECT format, type, locked FROM `d6_date_formats` WHERE type = 'custom'

karens’s picture

Status: Active » Needs review
StatusFileSize
new1.3 KB

Here's the patch I think is needed. Hoping others can try it out to be sure it works right before I commit it.

arlinsandbulte’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev

version should be 7.x-2.x-dev, right?

karens’s picture

Status: Needs review » Fixed
StatusFileSize
new1.53 KB

Ended up with a slightly different patch, but committed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.