summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormike bayer <mike_mp@zzzcomputing.com>2021-09-15 20:56:38 +0000
committerGerrit Code Review <gerrit@ci3.zzzcomputing.com>2021-09-15 20:56:38 +0000
commitdb847ca4e52de0e70d4993d1b7ac4de1c947b864 (patch)
treea89e3a6003b068d50d2b7d60c17aa82a28c1557b
parent89ba1e2e576f522bbf6f27fde77876dd0d5f2013 (diff)
parent4fa4c497512e4b4e311083d64ec8536d0230fe28 (diff)
downloadsqlalchemy-db847ca4e52de0e70d4993d1b7ac4de1c947b864.tar.gz
Merge "Fixes: #5289"
-rw-r--r--lib/sqlalchemy/dialects/sqlite/base.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sqlalchemy/dialects/sqlite/base.py b/lib/sqlalchemy/dialects/sqlite/base.py
index c4a6bf8e9..e936c9080 100644
--- a/lib/sqlalchemy/dialects/sqlite/base.py
+++ b/lib/sqlalchemy/dialects/sqlite/base.py
@@ -266,7 +266,8 @@ Constraint checking on SQLite has three prerequisites:
* The SQLite library must be compiled *without* the SQLITE_OMIT_FOREIGN_KEY
or SQLITE_OMIT_TRIGGER symbols enabled.
* The ``PRAGMA foreign_keys = ON`` statement must be emitted on all
- connections before use.
+ connections before use -- including the initial call to
+ :meth:`sqlalchemy.schema.MetaData.create_all`.
SQLAlchemy allows for the ``PRAGMA`` statement to be emitted automatically for
new connections through the usage of events::