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

TablesForScheduledPublishing fails when migrating from 7.15.0 to 8.1.0 #5852

Closed
stevemegson opened this issue Jul 11, 2019 · 2 comments
Closed

Comments

@stevemegson
Copy link
Contributor

The migration fails with the message

The database failed to upgrade. ERROR: The database configuration failed with the following message: Invalid cast from 'System.DateTime' to 'System.ValueTuple`2[[System.Nullable`1[[System.DateTime, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.Nullable`1[[System.DateTime, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]'. Please check log file for additional information (can be found in '/App_Data/Logs/')

from the following line:

var schedules = Database.Dictionary<int, (DateTime? releaseDate, DateTime? expireDate)> (scheduleSql);

It looks like a simple fix would be retrieving the release and expiry dates in two separate queries.

@nickh364
Copy link

I am having the same problem with one of our sites.

@nul800sebastiaan
Copy link
Member

This one was supposed to be part of v8.1.1 but unfortunately a .cs files was not included in the solution, that has now been fixed and this will be in 8.1.2.

Apologies for the inconvenience!

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

No branches or pull requests

5 participants