Skipped NOT NULL constraints on PostgreSQL 18+.
Some checks are pending
Linters / flake8 (push) Waiting to run
Linters / isort (push) Waiting to run
Linters / black (push) Waiting to run
Tests / Windows, SQLite, Python 3.13 (push) Waiting to run
Tests / JavaScript tests (push) Waiting to run

Thanks Simon Charette for the implementation idea.
This commit is contained in:
Mariusz Felisiak 2025-09-29 23:09:53 +02:00 committed by GitHub
parent 8b84364d46
commit 906a51e125
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -206,7 +206,9 @@ class DatabaseIntrospection(BaseDatabaseIntrospection):
cl.reloptions
FROM pg_constraint AS c
JOIN pg_class AS cl ON c.conrelid = cl.oid
WHERE cl.relname = %s AND pg_catalog.pg_table_is_visible(cl.oid)
WHERE cl.relname = %s
AND pg_catalog.pg_table_is_visible(cl.oid)
AND c.contype != 'n'
""",
[table_name],
)