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

[TASK] Update database after content block creation #240

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

o-ba
Copy link
Contributor

@o-ba o-ba commented Sep 6, 2024

No description provided.

@@ -215,6 +217,9 @@ protected function execute(InputInterface $input, OutputInterface $output): int
// @todo Core should define "typoscript" as a system cache
$this->cacheManager->getCache('typoscript')->flush();

// Update database to add new fields
$this->packageActivationService->updateDatabase();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not work, as TCA is not recreated yet.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some additional note: If we can make this feature work, we should also do these 2 things:

  • Only run this for Record Types, as Content Elements and Page Types do not add new fields by default.
  • Ask for the table name in the creation process, so that the default table name won't be created before the user could adjust it.

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

Successfully merging this pull request may close these issues.

2 participants