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

Unable to apply OC DataMigration in new environment after upgrade to OC 1.7.0 #14930

Closed
jsquared2 opened this issue Dec 21, 2023 · 5 comments
Closed
Labels
Milestone

Comments

@jsquared2
Copy link

Describe the bug

This issue manifests after upgrade from OC 1.5.0 to 1.7.0. When starting the application on a new environment (new database and no site configurations) the Document table is created with Id column of data type int instead of long.

This results in a failure to apply OC DataMigration involving creation of tables that have a DocumentId foreign key column of data type long that references the Document.Id column.

We can work around this issue by defaulting the IdentityColumnSize configuration to Int64 in ShellSettingsExtensions.cs.

This issue is related to #14929 and is manifested when the workaround for that issue is applied.

To Reproduce

Steps to reproduce the behavior:

  1. Provision new environment (new database, no site configuration)
  2. Start application in Visual Studio.
  3. See exceptions in Visual Studio indicating failure to apply various OC DataMigration.

Expected behavior

All OC DataMigration are applied.

Screenshots

`

@sebastienros
Copy link
Member

This issue manifests after upgrade from OC 1.5.0 to 1.7.0.

I am confused by the repro that states "new environment". Is it migrating a site from 1.5 to 1.7 or creating a new site on 1.7?

@sebastienros sebastienros added this to the 1.x milestone Dec 21, 2023
@jsquared2
Copy link
Author

Sorry for the confusion. The scenario is creating a new site on 1.7.

@sebastienros
Copy link
Member

Steps to reproduce the behavior:
Provision new environment (new database, no site configuration)
Start application in Visual Studio.
See exceptions in Visual Studio indicating failure to apply various OC DataMigration.

Creating a new site from 1.7 works, unless you can provide more detailed steps. We have functional tests for all the recipes we ship.

@MikeAlhayek
Copy link
Member

@jsquared2 is this still an issue or can we close this issue?

@jsquared2
Copy link
Author

@jsquared2 is this still an issue or can we close this issue?

I think it can be closed for now, thanks.

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

No branches or pull requests

3 participants