-
-
Notifications
You must be signed in to change notification settings - Fork 277
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
MBS-11072: Improve GenerateSQLScripts.pl usability #1688
base: master
Are you sure you want to change the base?
Conversation
Move copyright notice to top POD and update from Git log.
The added option `-c` | `--create-scripts` allows to specify a limited list of SQL Create files to be parsed to generate scripts. For example: GenerateSQLScripts.pl \ -c CreateFunctions.sql CreateTriggers.sql \ /tmp/indexer-sql
I'm confused. Why does the Docker setup need to run |
Indeed, it seems that If I recall correctly, SIR used to call scripts directly from MBS, assuming it was installed in the same system, which is not the case with separate Docker containers. Also I did not find any other call to |
Yeah, it's for regenerating scripts after schema changes. (The CAA schema is in this repo.) Which is mostly why it only logs when it didn't find something - that could indicate an error, whereas seeing what changes it generated is just |
So should we stop using this file in sir instead? |
We use it in musicbrainz-docker, not sir. But musicbrainz-docker should be able to use the scripts in https://github.com/metabrainz/sir/tree/master/sql AFAICT and not have to generate anything. The documentation improvements here make sense at least. |
Problem
MBVM-60: Output of
setup-amqp-triggers
is misleading and incompleteSolution
MBS-11072:
GenerateSQLScripts
with-h
optionChecklist for author
setup-amqp-triggers
Action