Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUGFIX] Exclude fields in upgrade wizards #215

Merged
merged 1 commit into from
May 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Classes/Upgrades/GlossaryUpgradeWizard.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ public function executeUpdate(): bool
$updateGlossary = [];
foreach ($result as $item) {
unset($item['description']);
unset($item['starttime']);
unset($item['endtime']);
$updateGlossary[] = $item;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ CREATE TABLE tx_wvdeepltranslate_domain_model_glossaries
l10n_source int unsigned default 0 not null,
l10n_state text null,
l10n_diffsource mediumblob null,
starttime int unsigned default 0 not null,
endtime int unsigned default 0 not null,

term varchar(255),
description text,
Expand Down
4 changes: 4 additions & 0 deletions Tests/Functional/Updates/Fixtures/TableToMigrate.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,17 @@
<description>Englisch - Lorem ipsum dolor sit ame</description>
<sys_language_uid>0</sys_language_uid>
<term>Hello</term>
<starttime>0</starttime>
<endtime>0</endtime>
</tx_wvdeepltranslate_domain_model_glossaries>
<tx_wvdeepltranslate_domain_model_glossaries>
<uid>2</uid>
<pid>0</pid>
<description>Deutsch - Lorem ipsum dolor sit ame</description>
<sys_language_uid>1</sys_language_uid>
<term>Welt</term>
<starttime>0</starttime>
<endtime>0</endtime>
</tx_wvdeepltranslate_domain_model_glossaries>
<tx_wvdeepltranslate_domain_model_glossariessync>
<uid>1</uid>
Expand Down