Skip to content

Conversation

@Barabasbalazs
Copy link
Contributor

@Barabasbalazs Barabasbalazs commented May 2, 2025

#1047

❓ Type of change

  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

When the --compat-output option is set to true, the logger will display the failed migration file as per the request in this issue. The other wanted changes suggested in the issue I did not add since running the migrations with --compact-output will display the failed sql query and the stacktrace as well.

This is what the new compact message will look like:

ss_compact_output

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@Barabasbalazs Barabasbalazs changed the title --compact-output displays failed file, error and the stacktrace Improve logging for failed migrations with --compact-output flag set May 3, 2025
@Barabasbalazs Barabasbalazs marked this pull request as ready for review May 4, 2025 16:21
@stale
Copy link

stale bot commented Jul 18, 2025

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Status: Abandoned Dropped and not into consideration label Jul 18, 2025
@thetutlage thetutlage merged commit 4e7589f into adonisjs:21.x Jul 22, 2025
16 checks passed
).length
const files = Object.values(migrator.migratedFiles)

const skippedMigrations = files?.filter(({ status }) => status === 'pending').length
Copy link

Choose a reason for hiding this comment

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

files is guaranteed to be defined.

- const skippedMigrations = files?.filter(({ status }) => status === 'pending').length
+ const skippedMigrations = files.filter(({ status }) => status === 'pending').length

Copy link
Member

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Status: Abandoned Dropped and not into consideration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants