mautic / user-documentation

https://mautic-documentation.readthedocs.io/en/latest/
12 stars 41 forks source link

Documentation issues / clarification with update instructions #245

Open eavonius opened 8 months ago

eavonius commented 8 months ago

I was following the instructions in this topic to update from mautic 5.0.2 to 5.0.3.

I'm using a composer based installation.

https://docs.mautic.org/en/5.x/getting_started/how_to_update_mautic.html

When running the commands under step 5 of Updating Mautic (composer based installs, I ran into the following issues:

  1. Running the second command bin/console mautic:update:apply --finish gives an error "You have composer updates enabled. This means that you can only update Mautic through the 'composer update' command." Should this line be removed then from the documentation?

  2. Running bin/console doctrine:schema:update --no-interaction --force I received errors:

    Updating database schema...
    
    In ExceptionConverter.php line 117:
    
    An exception occurred while executing a query: SQLSTATE[42000]: Syntax error or access violation: 1091 Can't DROP 'IDX_1AE3441319EB6921'; check that column/key exists
    
    In Exception.php line 28:
    
    SQLSTATE[42000]: Syntax error or access violation: 1091 Can't DROP 'IDX_1AE3441319EB6921'; check that column/key exists
    
    In Connection.php line 33:
    
    SQLSTATE[42000]: Syntax error or access violation: 1091 Can't DROP 'IDX_1AE3441319EB6921'; check that column/key exists

    I'm not sure if those are valid errors, or just because the migrations already applied them in the previous step. In most migration technologies I've used in the past you can make schema and data updates apply in one command. I'm sorry I'm not familiar with doctrine migrations.