Issue Bug Closed

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

Jochen Roth 06/26/23, 19:32 updated 07/09/24, 14:15

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

Reviews 2

History 48

  1. Gerrit Code Review pushed patch set 1 for main to change 79583 status New Under Review 07/03/23, 09:37

  2. Gerrit Code Review pushed patch set 2 for main to change 79583 07/03/23, 09:43

  3. Jochen Roth changed subject setup command return wrong exit code Streamline output of errer messages in case selected db is already filled 07/03/23, 11:01

  4. Jochen Roth changed description 07/03/23, 11:02

  5. Gerrit Code Review pushed patch set 3 for main to change 79583 07/03/23, 11:08

  6. Gerrit Code Review pushed patch set 1 for 12.4 to change 79854 07/06/23, 19:57

  7. Anonymous commented and changed status Under Review Resolved done 0 % 100 % 07/06/23, 20:00

    Applied in changeset commit:4ad0c24779e158c561c34fe28b58666f45cb782e.

  8. Benni Mack changed status Resolved Closed 07/09/24, 14:15