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
|
Hello, Consider the case where I'd like to automatically execute a script for every table that is created. Specifically, I'd like to ensure that the COLLATION is "utf8". So I created a base class called "Migration" (so I don't have to change generated migrations). It looks as follows:
However, the problem is that I can't overwrite AddTable. Would it be a problem to make AddTable virtual, or better yet, provide support for UTF8 collation by default for databases? Without that, I cannot store UNICODE characters in the database. They will all appear as "????". Just a note that I am using MySQL. Thanks, Werner |
|
|
I have updated Migration to mark all methods that should be overridable as virtual rather than the random assortment that was previously there. These changes will be available in the next nightly build for you.
|
|