Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DAAAAAAAAAAAAAAAAN opened this issue Jan 7, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@DAAAAAAAAAAAAAAAAN
Copy link
Contributor

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"

--

--
$ 
@DAAAAAAAAAAAAAAAAN DAAAAAAAAAAAAAAAAN added the enhancement New feature or request label Jan 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant