Improve scanning and normalization abilities for DatabaseState.

Review Request #10556 — Created May 20, 2019 and submitted

Information

Django Evolution
master

Reviewers

DatabaseState was originally built to help solve some tracking
problems for table indexes. We now need it to track model installation,
and going forward, we'll be using it to track table engines and other
details.

This change updates this class to fix up some small table lookup issues
(ensuring that we always normalize table names), to rename
rescan_indexes() to rescan_tables() (which is a more appropriate
name), and to add a utility function for determining if the database has
a table that backs a given model.

Future changes will update this to track additional information.

Unit tests pass.

Summary ID
Improve scanning and normalization abilities for DatabaseState.
`DatabaseState` was originally built to help solve some tracking problems for table indexes. We now need it to track model installation, and going forward, we'll be using it to track table engines and other details. This change updates this class to fix up some small table lookup issues (ensuring that we always normalize table names), to rename `rescan_indexes()` to `rescan_tables()` (which is a more appropriate name), and to add a utility function for determining if the database has a table that backs a given model. Future changes will update this to track additional information.
9cdee0b5635e52f05fca19429328a44a18d17939
david
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to master (ae20943)
Loading...