Skip to content

Empty output with --stdout when there are no model changes #22

@DAAAAAAAAAAAAAAAAN

Description

@DAAAAAAAAAAAAAAAAN

User story

As a developer
I want to preview changes to the database model without any other output
So that I can quickly confirm there are no changes to the database model

More info

Right now, when there are no changes to the database model, trek generate --stdout generates the below output (or worse, including unnecessary statements like in bug #20 ). I would like it to generate 0 output in that case. This would also allow more easy automation in some scenarios.

$ trek generate --stdout
2024/01/07 13:22:20 Skipping hook "check-pre"
2024/01/07 13:22:20 Checking dbm file
2024/01/07 13:22:20 Checking migration file names
2024/01/07 13:22:20 Checking templates
2024/01/07 13:22:20 Checking migrations and testdata
2024/01/07 13:22:20 Skipping hook "check-post"
2024/01/07 13:22:20 Changes detected
2024/01/07 13:22:24 Generating migration statements
qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
2024/01/07 13:22:25 Skipping hook "generate-migration-post"

--

--
$ 

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions