Skip to content
Snippets Groups Projects
Commit 4b0754f8 authored by Georgi's avatar Georgi
Browse files

[TASK] Release Version 4.2.1

parent 042e2087
No related branches found
No related tags found
No related merge requests found
...@@ -33,26 +33,22 @@ use TYPO3\CMS\Install\Attribute\UpgradeWizard; ...@@ -33,26 +33,22 @@ use TYPO3\CMS\Install\Attribute\UpgradeWizard;
use TYPO3\CMS\Install\Updates\UpgradeWizardInterface; use TYPO3\CMS\Install\Updates\UpgradeWizardInterface;
#[UpgradeWizard('sgVimeo_thumbnailsUpgradeWizard')] #[UpgradeWizard('sgVimeo_thumbnailsUpgradeWizard')]
final class ThumbnailsUpgradeWizard implements UpgradeWizardInterface final class ThumbnailsUpgradeWizard implements UpgradeWizardInterface {
{
/** /**
* Return the speaking name of this wizard * Return the speaking name of this wizard
*/ */
public function getTitle(): string public function getTitle(): string {
{
return 'Migrate the thumbnails field name in the database'; return 'Migrate the thumbnails field name in the database';
} }
/** /**
* Return the description for this wizard * Return the description for this wizard
*/ */
public function getDescription(): string public function getDescription(): string {
{
return 'This must be done in TYPO3 12 due to a bug and changes to how files fields are handled. See https://forge.typo3.org/issues/103885'; return 'This must be done in TYPO3 12 due to a bug and changes to how files fields are handled. See https://forge.typo3.org/issues/103885';
} }
public function executeUpdate(): bool public function executeUpdate(): bool {
{
$connection = GeneralUtility::makeInstance(ConnectionPool::class) $connection = GeneralUtility::makeInstance(ConnectionPool::class)
->getConnectionForTable('sys_file_reference'); ->getConnectionForTable('sys_file_reference');
...@@ -65,11 +61,10 @@ final class ThumbnailsUpgradeWizard implements UpgradeWizardInterface ...@@ -65,11 +61,10 @@ final class ThumbnailsUpgradeWizard implements UpgradeWizardInterface
); );
$queryBuilder->executeStatement(); $queryBuilder->executeStatement();
return true; return TRUE;
} }
public function updateNecessary(): bool public function updateNecessary(): bool {
{
$connection = GeneralUtility::makeInstance(ConnectionPool::class) $connection = GeneralUtility::makeInstance(ConnectionPool::class)
->getConnectionForTable('sys_file_reference'); ->getConnectionForTable('sys_file_reference');
...@@ -88,8 +83,7 @@ final class ThumbnailsUpgradeWizard implements UpgradeWizardInterface ...@@ -88,8 +83,7 @@ final class ThumbnailsUpgradeWizard implements UpgradeWizardInterface
return (int)$count > 0; return (int)$count > 0;
} }
public function getPrerequisites(): array public function getPrerequisites(): array {
{
// Add your logic here // Add your logic here
} }
} }
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"description": "A solution for embedding Vimeo videos, playlists, or channels easily into TYPO3 pages.", "description": "A solution for embedding Vimeo videos, playlists, or channels easily into TYPO3 pages.",
"homepage": "https://www.sgalinski.de", "homepage": "https://www.sgalinski.de",
"license": "GPL-2.0-or-later", "license": "GPL-2.0-or-later",
"version": "4.2.0", "version": "4.2.1",
"require": { "require": {
"typo3/cms-core": "^12.4.0", "typo3/cms-core": "^12.4.0",
"vimeo/vimeo-api": "^3.0" "vimeo/vimeo-api": "^3.0"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment