wocommunity / wolips

wolips
53 stars 53 forks source link

Add support for generating migrations for java.time prototypes #179

Closed hprange closed 7 months ago

hprange commented 8 months ago

This pull request introduces support for java.time migration generation in Entity Modeler. Despite java.time prototypes being supported for several years in Wonder, attempts to generate migrations for entities using these types have previously resulted in errors.

For instance, users might encounter the following error message:

Screenshot 2024-01-31 at 20 58 20

With this update, the Entity Modeler can now successfully generate migrations for java.time types. The migration generation will adhere to the following rules:

| Prototype         | New Column Method  |
|-------------------|--------------------|
| javaDateTime      | newTimestampColumn |
| javaLocalDate     | newDateColumn      |
| javaLocalDateTime | newTimestampColumn |
| javaLocalTime     | newTimeColumn      |

The result can be seem in the image below:

Screenshot 2024-01-31 at 20 55 35