|
Field is link to some entity. I have some logic about filling it. Is there any upgrade handlers to: 1. create field (nullable) 2. fill it with my custom logic 3. make it not nullbale |
|
Yes: currently you must use Note: this part of API is preliminary - probably, we'll convert this to hint later. If this property is used, DO considers the field is nullable until the final stage of upgrade. So e.g. you can use the following code in upgrade handlers:
|
