DB script upgrade 2.2.1 to 2.2.1.5

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
2/13/2007 4:15:52 AM
Gravatar
Total Posts 41

DB script upgrade 2.2.1 to 2.2.1.5

Hi!

I'm trying to upgrade from 2.2.1.4 to 2.2.1.6. When I run the script 2.2.1 to 2.2.1.5 I get the following error messages:

Msg 207, Level 16, State 1, Line 27
Invalid column name 'Modules/BlogModule.ascx'.
Msg 207, Level 16, State 1, Line 38
Invalid column name 'Modules/BlogModule.ascx'.
Msg 207, Level 16, State 1, Line 49
Invalid column name 'Modules/BlogModule.ascx'.

 

2/13/2007 9:48:35 AM
Gravatar
Total Posts 18439

Re: DB script upgrade 2.2.1 to 2.2.1.5

Hi Emil,


Which database are you using?

I was getting a similar error using MySQL and to fix it I had to prefix the value being compared with the collation like this:

INSERT INTO mp_ModuleDefinitionSettings
( ModuleDefID, SettingName, SettingValue, ControlType)

SELECT
ModuleDefID,
'BlogShowStatisticsSetting',
'true',
'CheckBox'
FROM mp_ModuleDefinitions
WHERE ControlSrc = _latin1 'Modules/BlogModule.ascx';

Notice the _latin1 just before the quoted value. You will see this in the MySQL upgrade script.

If you are using MySQL maybe remove the _latin1 or try putting the name of the collation you are using.

Hope it helps,

Joe
2/13/2007 2:50:21 PM
Gravatar
Total Posts 41

Re: DB script upgrade 2.2.1 to 2.2.1.5

I'm using SQL-Server 2005.
2/13/2007 4:53:12 PM
Gravatar
Total Posts 18439

Re: DB script upgrade 2.2.1 to 2.2.1.5

Hi Emil,

I guess there is some problem caused by different collations.

I would suggest, just remove the section of the upgrade script that does the inserts into mp_ModuleDefinitionSettings and just use the part that adds the new tables.

You can then add the new module settings for the blog manually under Admin > Feature Modules, edit the Blog module and add these 3 new settings.

BlogShowStatisticsSetting
true
CheckBox

BlogShowFeedLinksSetting
true
CheckBox

BlogShowAddFeedLinksSetting
true
CheckBox

Hope it helps,

Joe

2/14/2007 1:31:13 AM
Gravatar
Total Posts 41

Re: DB script upgrade 2.2.1 to 2.2.1.5

Thanks Joe, it worked.
You must sign in to post in the forums. This thread is closed to new posts.