This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Steps: In designer:
Exception occurs in Up() method of generated migration class, on line:
If I skip step 3, and make only one migration, everything works fine. Checked on version: 4.0.1339.20408 and 4.0.1190.19937 SQLLite |
|
|
This will be addressed in the next nightly build. However, in a way this is SQLite trying to alert you to a real issue. Supplying a default is safe when the table is empty (and it is silly that SQLite requires one in this case), but if the table already contains rows, then there is no good value that we can provide as a default -- every existing row will be given the same GUID (in this case Guid.Empty). By supplying a default we are preventing SQLite from warning you about the latter issue. So it's important to take care that Add Column migrations are applied only to empty tables, or to ensure that your application code handles empty GUIDs correctly. |
|
|
Thank you, for your answer. Yes, I'm aware, that my code must take care about Guid.Empty values. |
|