-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sort schema columns alphabetically (#4595)
* Adds logic to sort column names returned by the query runner. If `sorted` raises an Exception it returns the column names unaltered from the query runner. * Moves table name sorting from model code into schema handler. * Moves token sorting into the model code. * Replaces single-quotes with double-quotes for consistency. * Applies black formatting to changes. * Moves schema sort into separate method. Adds test. * Fixes output schema variable name. Without this the sorted cache is never returned! ____ ____ ____ _____ / __ \/ __ \/ __ \/ ___/ / /_/ / /_/ / /_/ (__ ) \____/\____/ .___/____/ /_/ * Adds test case guaranteeing that the model actually _uses_ the schema sorter. Related to a31f901
- Loading branch information
Showing
2 changed files
with
65 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters