This repository was archived by the owner on Jun 4, 2024. It is now read-only.
Version 2.0-beta2
Pre-release
Pre-release
This release includes many fixes to database schema and migration generation and some PHP 8 fixes.
- Changes in MariaDB and MySQL for handling datetime and timestamps.
- Changes regarding generation of ENUM columns.
- Changes regarding generation of DOUBLE/FLOAT/DECIMAL columns.
- Other changes to consistency of DB migration generation.
- Correct handling of
x-db-type, you may need to adjust yourx-db-typedefinition if you use this feature and included things like default value and NULL/NOT NULL in it. See README for details.
Many Thanks to @SOHELAHMED7 and @siggi-k for working on these!
Check your migrations when you update! See also the "How to update" steps below.
How to update?
- Make sure all migrations are applied and you have a state with no changes to the OpenAPI schema.
- Update the package with composer
- Run the API generator
- Check the diff on generated code if changes make sense, if not please report bugs
- Check your migrations, this release may create migrations that change DB, e.g. string to enum, timestamp to datetime and similar things. If columns change from string to enum, make sure you add code that handles values that are not included in the enum type, otherwise migration will fail.