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

Why is jambagecom/addons-em a requirement of static_info_tables_de? #22

Open
josefglatz opened this issue Mar 23, 2022 · 7 comments
Open
Labels

Comments

@josefglatz
Copy link

I can't find any code which relies on the mentioned extension.

@franzholz
Copy link
Owner

TYPO3 is not able to handle changes in the file ext_tables_static+adt.sql. The Extension Manager update function did not work since some years. This has already been discussed on Slack.

@josefglatz
Copy link
Author

josefglatz commented Oct 11, 2022 via email

@IchHabRecht
Copy link

IchHabRecht commented Mar 10, 2023

Hi @franzholz,

as I'm not part of the slack communication, is there any way to link to it or quote it here? That the update function for ext_tables_static+adt.sql doesn't work is new to me. I use it in TYPO3 10.4 and 11.5 by myself in different projects.

@franzholz
Copy link
Owner

What is the question?

@IchHabRecht
Copy link

IchHabRecht commented Mar 11, 2023

@franzholz the questions are:

  • what doesn't work in extension manager as there is functionality to handle ext_tables_static+adt.sql changes
  • what was discussed on Slack
  • where is an issue ticket for the outcome of the discussion

@franzholz
Copy link
Owner

Here is the discussion from Slack 14th January 2022:

_Franz Holzinger 17:22:
I need to fix the issue in which the updates of the static_info_tables language extensions are not any more executed. If I have activated the extension static_info_tables_de and then I modify the file ext_tables_static+adt.sql for example with this:
UPDATE static_countries SET cn_short_de='CHANGED Österreich Mountain Country' WHERE cn_iso_2='AT';
Then I click on the icon
The static database data has been changed. You should re-import the data.
And nothing happens.
This is because the SchemaMigrator.php function importStaticData only deals with IMPORT statements.
Why are the UPDATE lines ignored?
Is this not any more then intended behaviour to execute all updates from the file ext_tables_static+adt.sql as in the former versions of TYPO3 and static_info_tables?
Must I write an UpgradeWizard for this file?
https://docs.typo3.org/m/typo3/reference-coreapi/10.4/en-us/ApiOverview/UpdateWizards/Creation.html

Mathias Brodala

This file did never support updates, you are always required to drop and re-import everything.
[17:25 Uhr]
See https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/ExtensionArchitecture/FilesAndLocations/Index.html#ext-tables-static-adt-sql
[17:26 Uhr]
If you need updates, you should add a TYPO3 upgrade wizard or suggest a migration tool.

Franz Holzinger
[17:33 Uhr]The ext_tables_static+adt.sql in static_info_tables_de has always contained only UPDATE SQL commands.
The TYPO3 backend icon is already there. So this should be usable also for static_info_tables_de . (bearbeitet)

Mathias Brodala
What TYPO3 version did you test with? Did this work in older versions?

Franz Holzinger
[17:49 Uhr]
In former versions of TYPO3 (3.6 - 9.5) the file class.ext_update.php did the job to import the changes of the the file ext_tables_static+adt.sql . Yes, it did always work in this way.

Simon Gilli
[17:51 Uhr]
Should still work with 10.4 but not with 11.5 anymore see https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/11.0/Breaking-93083-Classext_updatephpHandlingRemoved.html

Chris Wolff
[20:13 Uhr]
Static info table always used some "hacks" to extend the main tables in the language versions

David Bruchmann
[20:32 Uhr]
nowadays we use different hacks_

@franzholz
Copy link
Owner

It has not been possible to edit the SQL file manually and then use the Extension Manager to update the database for only the language SQL. A new execution of the SQL file from static_info_tables has deleted all the languages. But only the changes language fields must be updated instead.
This has been fixed by the helper extension addons_em.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants