I have changed 2 fields in my Entity from string nullable to NOTnullable. Then I've launched my project with PerformSafely mode => got an error about unsafe actions. SO I added this in my UpgradeHandler:

protected override void AddUpgradeHints(ISet<UpgradeHint> hints)
   hints.Add(new ChangeFieldTypeHint(typeof(Module), "Name"));
   hints.Add(new ChangeFieldTypeHint(typeof(Module), "SysName"));

But this does not help at all.

asked Aug 31 '11 at 06:59

xumix's gravatar image


Thanks, will fix this.

(Sep 01 '11 at 05:43) Dmitri Maximov Dmitri%20Maximov's gravatar image

2 Answers:

Finally fixed in 7799 (04e97c6dc75a). Thanks for collaboration!

answered Oct 03 '11 at 10:44

Denis%20Krjuchkov's gravatar image

Denis Krjuchkov

According to our investigation upgrading column from nullable to not nullable work well either in Perform or in PerformSafely with ChangeFieldTypeHint.

answered Sep 20 '11 at 03:26

Denis%20Krjuchkov's gravatar image

Denis Krjuchkov

I have just sent you a project with reproducible error.

(Sep 30 '11 at 09:27) xumix xumix's gravatar image

Now reproduced, thanks

(Oct 03 '11 at 07:18) Denis Krjuchkov Denis%20Krjuchkov'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