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

Unify the list of tables processed by scripts #288

Open
nickkolok opened this issue Nov 15, 2020 · 0 comments
Open

Unify the list of tables processed by scripts #288

nickkolok opened this issue Nov 15, 2020 · 0 comments

Comments

@nickkolok
Copy link
Collaborator

In two scripts (./db-copy.sh and ./rename-app.sh) there are lists of tables that should be processed in the DB, i.e. room, problem, team etc. According to DRY, they should be listed only once. Ideally, these scripts should treat all the tables with name IPTdev_modelname, where IPTdev is the name of the tournament and modelname is a name of model (that consists of non-capital Latin letters only). Note that tables like IPTdev_pf2_team should not be copied.

As a temporary solution, we can place a file (e.g. tables.txt) into the tournament dir (e.g. IPTdev) with the list of tables, but then we cannot put the comments there; however, we can place a script (e.g. ./list-tables.sh), but this seems to be an overkill.

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

No branches or pull requests

1 participant