-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
rework database creation, cleanup + other db fixes #1981
Conversation
When tables are created using create_all() not only tables created, but also SQLAlchemy runs its hacks, e.g. for cyclic referencew with use_alter=True. With this change some tables sets are not created in databases that enforces relations between tables (e.g. PostgreSQL), because that set of tables contained references on not created tables.
Current coverage is
|
@@ -14,6 +14,7 @@ env: | |||
- TWISTED=13.0.0 SQLALCHEMY=latest TESTS=trial | |||
- TWISTED=15.4.0 SQLALCHEMY=latest TESTS=trial | |||
- TWISTED=latest SQLALCHEMY=latest TESTS=trial | |||
- TWISTED=latest SQLALCHEMY=latest TESTS=trial BUILDBOT_TEST_DB_URL=sqlite:////tmp/test_db.sqlite |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you include a comment about why this is useful, compared to the default memory DB?
This looks good aside from the stylistic comment. |
@djmitche, I fixed issues that you noted. |
@djmitche, is my fixes looks good to you? |
@rutsky perfect, yes |
rework database creation, cleanup + other db fixes
No description provided.