Duplicate ids in mp_moduledefinitionsettings

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

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.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
3/16/2008 10:23:42 PM
Gravatar
Total Posts 148

Duplicate ids in mp_moduledefinitionsettings

I'm trying to upgrade my ancient installation and am running into problems running the pgsql/2.2.3.9.config upgrade script.  To avoid problems with duplicate primary keys, I changed "PRIMARY KEY" to "UNIQUE" throughout the scripts.  However, I'm still getting an error at:

ALTER TABLE mp_moduledefinitionsettings
ADD CONSTRAINT pk_moduledefinitionsettings UNIQUE (id);
 

It says "could not create unique index".  I looked at the data and found two rows with the same ID:

mojoportal=> select * from mp_moduledefinitionsettings where id = 16;
id | moduledefid | settingname | settingvalue | controltype | regexvalidationexpression | featureguid | resourcefile
----+-------------+-----------------------------+--------------+-------------+---------------------------+--------------------------------------+--------------
16 | 11 | GalleryWebImageWidthSetting | 480 | TextBox | ^[1-9][0-9]{0,2}$ | d572f6b4-d0ed-465d-ad60-60433893b401 |
16 | 11 | GalleryCompactModeSetting | true | CheckBox | | d572f6b4-d0ed-465d-ad60-60433893b401 |
(2 rows)
 

Presumably this is due to some ancient bug.  What should I do to correct it?  Is the id column of this table actually used by some other table?

--Dean

 

3/17/2008 7:41:16 AM
Gravatar
Total Posts 18439

Re: Duplicate ids in mp_moduledefinitionsettings

Hey Dean,

I think you can safely delete 1 or both of them. Module settings are now configured for installation under Web/Setup/applications/mojoportal-core/FeatureDefinitions

So after the main schema upgrade it will automatically setup any new or missing module definition settings by visiting the Setup/Default.aspx page.

It will get a different integer id on the way in but that should be ok.

Hope it helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.