mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
37 lines
2.2 KiB
Markdown
37 lines
2.2 KiB
Markdown
# 4.4.0 (Unreleased)
|
|
|
|
## Overview {#overview}
|
|
|
|
- [Correct PHP types are now returned from database queries](/developer_guides/model/sql_select#data-types)
|
|
- [Server Requirements](/getting_started/server_requirements/#web-server-software-requirements) have been refined:
|
|
MySQL 5.5 end of life reached in December 2018, thus SilverStripe 4.4 requires MySQL 5.6+.
|
|
SilverStripe 4.3 and prior still support MySQL 5.5 for their own lifetime.
|
|
- The name of the directory where vendor module resources are exposed can now be configured by defining a `extra.resources-dir` key in your `composer.json` file. If the key is not set, it will automatically default to `resources`. New projects will be preset to `_resources`. This will avoid potential conflict with SiteTree URL Segments.
|
|
- dev/build is now non-destructive for all Enums, not just ClassNames. This means your data won't be lost if you're switching between versions, but watch out for code that breaks when it sees an unrecognised value!
|
|
|
|
## Upgrading {#upgrading}
|
|
|
|
### Adopting to new `_resources` directory
|
|
|
|
1. Update your `.gitignore` file to ignore the new `_resources` directory. This file is typically located in the root of your project or in the `public` folder.
|
|
2. Add a new `extra.resources-dir` key to your composer file.
|
|
```js
|
|
{
|
|
// ...
|
|
"extra": {
|
|
// ...
|
|
"resources-dir": "_resources"
|
|
}
|
|
}
|
|
```
|
|
3. Expose your vendor assets by running `composer vendor-expose`.
|
|
4. Remove the old `resources` folder. This folder will be located in the `public` folder if you have adopted the public web root, or in the root of your project if you haven't.
|
|
|
|
You may also need to update your server configuration if you have applied special conditions to the `resources` path.
|
|
|
|
## Changes to internal APIs
|
|
|
|
- `PDOQuery::__construct()` now has a 2nd argument. If you have subclassed PDOQuery and overridden __construct()
|
|
you may see an E_STRICT error
|
|
- The name of the directory where vendor module resources are exposed can now be configured by adding a `extra.resources-dir` key to your composer file. The new default in `silverstripe/installer` has been changed to `_resources` rather than `resources`. This allows you to use `resources` as a URL segment or a route.
|