contao-manager icon indicating copy to clipboard operation
contao-manager copied to clipboard

Show error message in migration view

Open ausi opened this issue 1 year ago • 4 comments

Adds the error message to the migration view output as currently there is no way to know what went wrong when a schema migration fails.

Bildschirmfoto 2024-04-15 um 18 17 04

ausi avatar Apr 15 '24 16:04 ausi

Please also update the swagger.yaml to communicate the new API property.

aschempp avatar Apr 17 '24 07:04 aschempp

Please also update the swagger.yaml to communicate the new API property.

Done in 5af9e54e599c9bec493c1208cfc50a1240a56f4b

ausi avatar Apr 17 '24 10:04 ausi

Do I understand correctly there is always a message, also for successful migrations? What would that look like?

aschempp avatar Apr 17 '24 11:04 aschempp

Do I understand correctly there is always a message, also for successful migrations?

No, the schema-result only has a message if isSuccessful is false. But the migration-result always has a message, usually something like "Contao\CoreBundle\Migration\Version500\BooleanFieldsMigration executed successfully"

ausi avatar Apr 17 '24 11:04 ausi

Thank you @ausi

aschempp avatar Jun 12 '24 08:06 aschempp