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
|
Hi, I am using LightSpeed with two models: A main model and a linked one. They don't have any connection points but need to be in the same database. Both models are set to the same migrations project. If I create a new migration from the main model the classes from the linked model are missing. (This can also be done the other way around.) I want to have one migration for both models. Is there a way to achieve this? Regards, Dennis |
|
|
Unfortunately the designer cannot currently generate a combined migration for both parts of the linked model. The only way to do this at the moment involves manually managing the migration code. For example, have two separate migration projects, one for each file of the linked model, and generate mgiration code separately into each project. Then manually merge the generated code from the second project into the first. (Migration code generation is a one-off: you are free to edit the code once it's been generated.) And when you run migrations always run the first project (with the combined code) rather than the second. I've logged a feature request to make migration generation work with linked models. |
|