Hi,

I'm trying to upgrade a database using some hints.

        hints.Add(new MoveFieldHint("DossierContacting", "Date", typeof(DossierStatus)));
        hints.Add(new MoveFieldHint("DossierContacting", "Concern", typeof(DossierStatus)));
        hints.Add(new MoveFieldHint("DossierContacting", "DossierContactingBy", typeof(DossierStatus)));
        hints.Add(new MoveFieldHint("DossierContacting", "DossierContactingType", typeof(DossierStatus)));
        hints.Add(new MoveFieldHint("DossierContacting", "DossierContactingCauseList", typeof(DossierStatus)));

        hints.Add(new MoveFieldHint("DossierTermination", "DossierTerminationCauseList", typeof(DossierStatus)));

Formerly we had the following construction

AbstractEntity <-- DossierStatus <-- DossierTermination
                                 <-- DossierContacting

( <-- = Inherits ) The DossierTermination and DossierContacting are deleted and the content of these entities moved to the DossierStatus.

During the Build of the Domain we get an exception 'Sequence has no matching elements' in the 'GenerateCopyColumnHint' in 'XTensive.Storage\Upgrade' at line 558

Regards Paul Sinnema Diartis AG

asked Nov 10 '10 at 08:15

Paul%20Sinnema's gravatar image

Paul Sinnema
261848896

edited Nov 11 '10 at 06:38

Alex%20Yakunin's gravatar image

Alex Yakunin
29714412


One Answer:

To be fixed. Issue 846 is created.

answered Nov 11 '10 at 06:39

Alex%20Yakunin's gravatar image

Alex Yakunin
29714412

edited Nov 11 '10 at 06:39

Is this going to be in 3.4.4?

(Nov 24 '10 at 14:16) Paul Sinnema Paul%20Sinnema's gravatar image

Paul, we're checking this right now, and there are few questions:

  • Are types DossierTermination and DossierContacting already deleted on upgrade? I.e. do you have these types in model on upgrade?
  • Please see this answer about removal of type on upgrade - it seems you have very similar case. If so, we could implement necessary hint ASAP.
(Nov 26 '10 at 08:11) Alex Yakunin Alex%20Yakunin's gravatar image

Yes I removed the Entities from the Model before the Upgrade.

(Nov 28 '10 at 11:01) Paul Sinnema Paul%20Sinnema's gravatar image

No bother to do this ASAP. We simply removed the data and started from scratch. We're still not live with customers at the moment. I was just trying this feature out to see if we can upgrade things like that in the future. Our first live installation will be in januari 2011.

(Nov 28 '10 at 11:03) Paul Sinnema Paul%20Sinnema's gravatar image

Good then. Most likely type merge (that's necessary here) will be done with issue 857 (i.e. as part of v4.4.X).

(Nov 28 '10 at 15:47) Alex Yakunin Alex%20Yakunin's gravatar image
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
toggle preview

powered by OSQA