mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Moved up file migration in changelog
This commit is contained in:
parent
862fcec553
commit
19d33f4de7
@ -253,6 +253,25 @@ To access environment variables you can use the `SilverStripe\Core\Environment::
|
|||||||
|
|
||||||
See [Environment Management docs](/getting-started/environment_management/) for full details.
|
See [Environment Management docs](/getting-started/environment_management/) for full details.
|
||||||
|
|
||||||
|
### Migrate File DataObject
|
||||||
|
|
||||||
|
Since the structure of `File` dataobjects has changed, a new task `MigrateFileTask`
|
||||||
|
has been added to assist in migration of legacy files (see [file migration documentation](/developer_guides/files/file_migration)).
|
||||||
|
|
||||||
|
```
|
||||||
|
$ ./vendor/bin/sake dev/tasks/MigrateFileTask
|
||||||
|
```
|
||||||
|
|
||||||
|
Any `File` dataobject which is not in the `File.allowed_extensions` config will be deleted
|
||||||
|
from the database during migration. Any invalid file on the filesystem will not be deleted,
|
||||||
|
but will no longer be attached to a dataobject, and should be cleaned up manually.
|
||||||
|
To disable this, set the following config:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
SilverStripe\Assets\FileMigrationHelper:
|
||||||
|
delete_invalid_files: false
|
||||||
|
```
|
||||||
|
|
||||||
### Get upgrade tips on your code
|
### Get upgrade tips on your code
|
||||||
|
|
||||||
While there's some code we can automatically rewrite, other uses of changed SilverStripe APIs aren't that obvious.
|
While there's some code we can automatically rewrite, other uses of changed SilverStripe APIs aren't that obvious.
|
||||||
@ -937,25 +956,6 @@ Depending on your server configuration, it may also be necessary to adjust your
|
|||||||
permissions. Please see the [common installation problems](/getting_started/installation/common_problems)
|
permissions. Please see the [common installation problems](/getting_started/installation/common_problems)
|
||||||
guide for configuration instruction.
|
guide for configuration instruction.
|
||||||
|
|
||||||
### Migrate File DataObject
|
|
||||||
|
|
||||||
Since the structure of `File` dataobjects has changed, a new task `MigrateFileTask`
|
|
||||||
has been added to assist in migration of legacy files (see [file migration documentation](/developer_guides/files/file_migration)).
|
|
||||||
|
|
||||||
```
|
|
||||||
$ ./framework/sake dev/tasks/MigrateFileTask
|
|
||||||
```
|
|
||||||
|
|
||||||
Any `File` dataobject which is not in the `File.allowed_extensions` config will be deleted
|
|
||||||
from the database during migration. Any invalid file on the filesystem will not be deleted,
|
|
||||||
but will no longer be attached to a dataobject, and should be cleaned up manually.
|
|
||||||
To disable this, set the following config:
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
SilverStripe\Assets\FileMigrationHelper:
|
|
||||||
delete_invalid_files: false
|
|
||||||
```
|
|
||||||
|
|
||||||
### Image handling
|
### Image handling
|
||||||
|
|
||||||
As all image-specific manipulations has been refactored from `Image` into an `ImageManipulations` trait, which
|
As all image-specific manipulations has been refactored from `Image` into an `ImageManipulations` trait, which
|
||||||
|
Loading…
Reference in New Issue
Block a user