ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Upgrading modified MySQL database from 1.x to 2.x

February 28, 2012 2:23am

Subscribe [4]
  • #1 / Feb 28, 2012 2:23am

    Seamus

    47 posts

    I’m working on a complicated upgrade from 1.x to 2.x where one of the columns in the custom channel fields needed to be modified to allow extremely long entries (from TEXT to MEDIUMTEXT). These fields are being truncated during the update. My hunch is that when the upgrade script sets up the new exp_channel_data table it also defaults back to the standard MySQL field types.

    Can you provide any advice on where to modify the installer script to prevent this from happening?

  • #2 / Feb 28, 2012 12:16pm

    Shane Eckert

    7174 posts

    Hello Seamus,

    I am sorry to hear you are running into this!

    You are correct, The update wizard/shell script is changing your MEDIUMTEXT field back to text as part of the conversion process. This then truncates the extra text that is not going to fit into a TEXT field.

    You can look through the update scripts to find the one that makes the change and edit it. That’s about as much as I can offer you. Please be aware that modifications to the Database are not supported.

    Is there anything else I can help you with?

    Cheers,

  • #3 / Feb 29, 2012 4:40am

    Seamus

    47 posts

    Thanks for your help. I’ll figure something out. Maybe I can just copy back the longer fields from the 1.x database after the upgrade.

  • #4 / Feb 29, 2012 6:15pm

    Shane Eckert

    7174 posts

    Hello Seamus,

    I am sorry I could not offer more help.

    Best of luck with the procedure. The Community Help Forum might be a good place to get some tips. Would you like me to move this thread there?

    Cheers,

  • #5 / Mar 01, 2012 4:20pm

    Seamus

    47 posts

    Thanks for the offer, it’s worth a shot…

  • #6 / Mar 02, 2012 3:59pm

    Shane Eckert

    7174 posts

    Hello Seamus,

    No worries! Moving the thread over.

    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases