Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ContentItemContentFolderID is NULL for Content Items migrated with a custom mapping class #321

Open
twozero6 opened this issue Dec 17, 2024 · 0 comments

Comments

@twozero6
Copy link

After migrating a K13 database to XbyK 29.7.0, I tried to upgrade the DB to 30.0.0 and the SQL upgrade failed due to:

The ALTER TABLE statement conflicted with the CHECK constraint "CHECK_CMS_ContentItem_ContentItemIsReusable_ContentItemContentFolderID". The conflict occurred in database "redacted-xbyk-project", table "dbo.CMS_ContentItem".

When running the following query, all content items that were migrated through a custom mapping class are returned:

SELECT * FROM CMS_ContentItem WHERE ContentItemIsReusable = 1 and ContentItemContentFolderID IS NULL

In addition to setting the FolderID value during a migration, please give us an option to Set\Create a folder for each item as a part of the ClassMapping class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant