Project

General

Profile

Actions

Bug #101172

closed

Streamline output of errer messages in case selected db is already filled

Added by Jochen Roth 10 months ago. Updated 10 months ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
CLI
Start date:
2023-06-26
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
12
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

When running this command with a already filled database:

ddev typo3 setup \
    --driver=mysqli \
    --host=db \
    --dbname=db \
    --port=3306 \
    --username=db \
    --password=db \
    --admin-username=admin \
    --admin-user-password=Password.1 \
    --admin-email="typo3@example.com" \
    --force -n

the following exception is thrown:

In SetupCommand.php line 284:

  The selected database contains already 42 tables. Please delete all tables or select another database.  

Streamline the message like the other error messaged

x The message
Actions #1

Updated by Gerrit Code Review 10 months ago

  • Status changed from New to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/79583

Actions #2

Updated by Gerrit Code Review 10 months ago

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/79583

Actions #3

Updated by Jochen Roth 10 months ago

  • Subject changed from setup command return wrong exit code to Streamline output of errer messages in case selected db is already filled
Actions #4

Updated by Jochen Roth 10 months ago

  • Description updated (diff)
Actions #5

Updated by Gerrit Code Review 10 months ago

Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/79583

Actions #6

Updated by Gerrit Code Review 10 months ago

Patch set 1 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/79854

Actions #7

Updated by Anonymous 10 months ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF