Skip to content

Commit

Permalink
Merge 4.x into 5.x
Browse files Browse the repository at this point in the history
  • Loading branch information
SonataCI committed Jan 25, 2022
2 parents b6b078c + 6a22980 commit e24099f
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,23 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [4.0.0](https://github.com/sonata-project/SonataMediaBundle/compare/4.0.0-RC2...4.0.0) - 2022-01-25
### Added
- [[#2222](https://github.com/sonata-project/SonataMediaBundle/pull/2222)] Added support for Symfony 6. ([@jordisala1991](https://github.com/jordisala1991))

### Changed
- [[#2227](https://github.com/sonata-project/SonataMediaBundle/pull/2227)] Argument 1 in order to allow any iterable type at `MediaInterface::setGalleryItems()` and `GalleryInterface::setGalleryItems()`. ([@phansys](https://github.com/phansys))

### Fixed
- [[#2267](https://github.com/sonata-project/SonataMediaBundle/pull/2267)] Fixed usage of this bundle with PostgreSQL. ([@jordisala1991](https://github.com/jordisala1991))
- [[#2266](https://github.com/sonata-project/SonataMediaBundle/pull/2266)] Fixed placeholder for files on media list. ([@jordisala1991](https://github.com/jordisala1991))
- [[#2264](https://github.com/sonata-project/SonataMediaBundle/pull/2264)] Loading Media / Gallery object from the database. ([@jordisala1991](https://github.com/jordisala1991))
- [[#2225](https://github.com/sonata-project/SonataMediaBundle/pull/2225)] Fixed `CRUDController` registration for GalleryItemAdmin. ([@jordisala1991](https://github.com/jordisala1991))
- [[#2225](https://github.com/sonata-project/SonataMediaBundle/pull/2225)] Fixed default values for models to match the explanations on the documentation. ([@jordisala1991](https://github.com/jordisala1991))

### Removed
- [[#2264](https://github.com/sonata-project/SonataMediaBundle/pull/2264)] Final modifier on all the getters / setters of the entities. ([@jordisala1991](https://github.com/jordisala1991))

## [4.0.0-RC2](https://github.com/sonata-project/SonataMediaBundle/compare/4.0.0-RC1...4.0.0-RC2) - 2021-11-23
### Fixed
- [[#2219](https://github.com/sonata-project/SonataMediaBundle/pull/2219)] Fix block service registration ([@core23](https://github.com/core23))
Expand Down
3 changes: 3 additions & 0 deletions UPGRADE-4.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ Assuming your media table is called `media__media`, you could execute:
UPDATE media__media SET cdnIsFlushable = false WHERE cdnIsFlushable IS NULL;
```

We also added an option to use `jsonb` for the `providerMetadata` field. This will only affect you if you use PostgreSQL
database. Please make sure you do the appropiate changes to your schema in order to be in sync.

### Removed unused JavaScript

SonataMediaBundle 3 included a JavaScript dependency: Nivo Gallery. This dependency is not used on Sonata code,
Expand Down
6 changes: 5 additions & 1 deletion src/Resources/config/doctrine/BaseMedia.orm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
<field name="providerName" column="provider_name" type="string" length="255"/>
<field name="providerStatus" column="provider_status" type="integer"/>
<field name="providerReference" column="provider_reference" type="string" length="255"/>
<field name="providerMetadata" column="provider_metadata" type="json" nullable="true"/>
<field name="providerMetadata" column="provider_metadata" type="json" nullable="true">
<options>
<option name="jsonb">true</option>
</options>
</field>
<field name="width" column="width" type="integer" nullable="true"/>
<field name="height" column="height" type="integer" nullable="true"/>
<field name="length" column="length" type="decimal" nullable="true"/>
Expand Down

0 comments on commit e24099f

Please sign in to comment.