mirror of https://gitlab.com/tildes/tildes.git
Browse Source
Both the initialize_db script and Alembic need to import all DatabaseModel subclasses so that DatabaseModel.metadata has all the models attached. Previously this wasn't being done properly, and the intialize_db script wasn't creating the scraper_result table since it hadn't been imported. This commit creates a dedicated module to import all of those classes, so that both those locations can simply import * from it instead of needing to import all the models individually. This still isn't great overall, but it should be less prone to mistakes at least.merge-requests/40/head
Deimos
6 years ago
3 changed files with 23 additions and 14 deletions
Loading…
Reference in new issue