-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Migration type identification error #16248
Comments
How is this different to #16223? |
Do you have an easy way to reproduce the issue? |
The problem is that the migration manager is not allowing a migration to have more than one feature. But after removing the There are two solutions possible:
I tend to suggest the second option. |
Just like this ? public class MyMigration :DataMigration<MyFeatureStartup> It has the advantage of introducing strong type-checking and not needing to log those strings anymore~ |
That would be the same as applying the |
We triaged this issue and set the milestone according to the priority we think is appropriate (see the docs on how we triage and prioritize issues). This indicates when the core team may start working on it. However, if you'd like to contribute, we'd warmly welcome you to do that anytime. See our guide on contributions here. |
Why is that the case? Shouldn't just the second happen? |
All public types were previously added to the main feature as well, even if they were not in DI or had no attribute. So to keep it compatible, this feature assignment was kept. But I haven't thought enough about the migrations. |
It should have something to do with #15793.
/cc @gvkries
OrchardCore/src/OrchardCore/OrchardCore.Data.YesSql/Migration/DataMigrationManager.cs
Lines 275 to 285 in 0a96f44
When
OrchardCore.Contents
is passed in, it recognises its submodule's migration type as its own, e.g.ExportContentToDeploymentTargetMigrations
, which is actually theExportContentToDeploymentTarget
is part of theExportContentToDeploymentTarget
feature.src/OrchardCore.Modules/OrchardCore.Contents/Deployment/ExportContentToDeploymentTarget/ExportContentToDeploymentTargetMigrations.cs
Originally posted by @hyzx86 in #16212 (comment)
Full Log
The text was updated successfully, but these errors were encountered: