Several command-line scripts have been developed to help automate issues in the database.
-
bin\cake fix-district-associationsadds missing associations between school districts and their respective cities, counties, and states, based on the location of their schools. -
bin\cake fix-metric-treefixes problems with the metric tree structure by rewriting thelftandrghtfields for every metric. If the metric tree is displaying parent/child metric relationships that don't match what they should be, this command can likely correct that. -
bin\cake fix-percent-valuessets theis_percentfield for each metric based on its name and either applies or removes percent formatting for each statistic based on what metric with which it's associated, e.g. transforming values like "0.025" into "2.5%". -
bin\cake fix-selectablelooks for unselectable metrics with associated statistics or selectable metrics with no statistics and toggles theirselectableflag. You can use this command to review a preview of the changes that it will make before you precede with updates. -
bin\cake clean-associationslooks for redundant records in join tables and removes them.