summaryrefslogtreecommitdiff
path: root/django/db/backends/postgresql_psycopg2/introspection.py
AgeCommit message (Collapse)Author
2019-01-17Refs #25175 -- Removed db.backends.postgresql_psycopg2 per deprecation timeline.Tim Graham
2015-08-07Refs #25175 -- Added backwards compatibility for importing ↵Caio Ariede
postgresql_psycopg2 backend.
2015-08-07Fixed #25175 -- Renamed the postgresql_psycopg2 database backend to postgresql.Caio Ariede
2015-06-19Fixed #23804 -- Added RasterField for PostGIS.Daniel Wiesmann
Thanks to Tim Graham and Claude Paroz for the reviews and patches.
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-01-14Fixed #22603 -- Reorganized classes in django.db.backends.Tim Graham
2015-01-12Fixed #17785 -- Preferred column names in get_relations introspectionClaude Paroz
Thanks Thomas Güttler for the report and the initial patch, and Tim Graham for the review.
2014-12-08Fixed #23968 -- Replaced list comprehension with generators and dict ↵Jon Dufresne
comprehension
2014-11-20Added AutoField introspection for PostgreSQLClaude Paroz
Refs #23748.
2014-09-24Fixed flake8 warnings.Tim Graham
2014-09-23Made get_table_list return a TableInfo named tupleClaude Paroz
2014-09-05Limited lines to 119 characters in django/Tim Graham
refs #23395.
2013-11-02Fixed all E261 warningscoagulant
2013-09-26Enforce ordering on PostgreSQL get_constraints cols (refs #21134)Andrew Godwin
2013-08-19Merge remote-tracking branch 'core/master' into schema-alterationAndrew Godwin
Conflicts: docs/ref/django-admin.txt
2013-08-16Fixed #20829 -- Skip postgis metadata tables with introspectionHarm Geerts
2013-08-10Update get_constraints with better commentsAndrew Godwin
2013-07-22Merge branch 'master' into schema-alterationAndrew Godwin
Conflicts: django/db/backends/mysql/introspection.py django/db/backends/oracle/creation.py django/db/backends/postgresql_psycopg2/creation.py django/db/models/base.py django/db/models/loading.py
2013-07-08A large number of stylistic cleanups across django/db/Alex Gaynor
2013-07-02Make get_constraints return columns in orderAndrew Godwin
2013-07-02Fix get_constraints to do multi-column indexes properly on pgAndrew Godwin
2013-04-18Merge branch 'master' into schema-alterationAndrew Godwin
Conflicts: django/db/backends/__init__.py django/db/backends/mysql/base.py django/db/backends/oracle/base.py django/db/backends/oracle/creation.py django/db/backends/postgresql_psycopg2/base.py django/db/backends/sqlite3/base.py django/db/models/fields/related.py
2013-04-01Fixed #16737 -- Support non-ascii column names in inspectdbClaude Paroz
Thanks moof at metamoof.net for the report.
2013-03-02Add introspection support for BinaryFieldClaude Paroz
2013-01-12Fixed #17574 -- Implemented missing get_key_columns in PostgreSQL backendClaude Paroz
2013-01-12Return namedtuple from get_table_descriptionClaude Paroz
We don't make use of it currently to not break third-party db backends.
2012-09-17Fix bug in get_indexes affecting the testsAndrew Godwin
2012-09-07Add check constraint support - needed a few Field changesAndrew Godwin
2012-09-07Repoint ForeignKeys when their to= changes.Andrew Godwin
2012-09-05Merge branch 'master' into schema-alterationAndrew Godwin
2012-08-30db_index alteration mostly workingAndrew Godwin
2012-08-30Made get_table_description also return the size of char fields on SQLiteClaude Paroz
2012-08-18First stab at MySQL supportAndrew Godwin
2012-08-02Add M2M tests and some unique supportAndrew Godwin
2012-06-07Fixed #18269 -- Applied unicode_literals for Python 3 compatibility.Claude Paroz
Thanks Vinay Sajip for the support of his django3 branch and Jannis Leidel for the review.
2012-04-30Made get_indexes() consistent across backends.Anssi Kääriäinen
Fixed #15933, #18082 -- the get_indexes() method introspection was done inconsitently depending on the backend. For example SQLite included all the columns in the table in the returned dictionary, while MySQL introspected also multicolumn indexes. All backends return now consistenly only single-column indexes. Thanks to andi for the MySQL report, and ikelly for comments on Oracle's get_indexes() changes.
2012-02-11Fixed #10837 -- Added CHAR(X)->CharField to mapping used in Postgres DB ↵Ramiro Morales
introspection. Thanks trbs for the report and initial patch and to Claude Paroz for updating it. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17511 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-02-11Fixed #7783 -- Made introspection of nullable columns more robust with Postgres.Ramiro Morales
Thanks bthomas AT ncorcle DOT com for the report and initial patch, and Claude Paroz for the final, complete patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17508 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-06-13Removed duplicate entry in introspection PostgreSQL db backend.Jannis Leidel
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16394 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-06-11Fixed #811 -- Added support for IPv6 to forms and model fields. Many thanks ↵Jannis Leidel
to Erik Romijn. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16366 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-04-02Deprecated the psycopg-based postgresql database backend.Russell Keith-Magee
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15980 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-11Fixed #5461 -- Refactored the database backend code to use classes for the ↵Russell Keith-Magee
creation and introspection modules. Introduces a new validation module for DB-specific validation. This is a backwards incompatible change; see the wiki for details. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8296 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-14Backed out [6165]. It breaks things for people using psycopg2 because it ↵Malcolm Tredinnick
requires psycopg to also be installed due to imports. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6171 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-14Refs #4299 -- Removed some code duplication in the postgresql introspection ↵Gary Wilson Jr
modules by letting the `postgresql_psycopg2` backend use identical functions from the `postgresql` backend. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6165 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-08-20Refactored quote_name() to DatabaseOperations.quote_name(). Refs #5106Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5967 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-13Refs #2591 -- Removed int conversion and try/except since the value in the ↵Gary Wilson Jr
single-item list is already an int. I overlooked this in my original patch, which was applied in [5679]. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5690 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-13Fixed #2591 -- Fixed a problem with inspectdb with psycopg2 (only). Patch fromMalcolm Tredinnick
Gary Wilson. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5679 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-21Fixed #2365, #3324 -- Renamed FloatField to DecimalField and changed the codeMalcolm Tredinnick
to return Decimal instances in Python for this field. Backwards incompatible change. Added a real FloatField (stores floats in the database) and support for FloatField and DecimalField in newforms (analogous to IntegerField). Included decimal.py module (as django.utils._decimal) from Python 2.4. This is license compatible with Django and included for Python 2.3 compatibility only. Large portions of this work are based on patches from Andy Durdin and Jorge Gajon. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5302 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-21Fixed a bunch of spurious imports, typos, and other small errors turned up ↵Jacob Kaplan-Moss
by a pass through PyFlakes. This covers about the first third of the errors. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3411 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-01Fixed #2061 -- Fixed PostgreSQL index introspection in tables that have ↵Adrian Holovaty
dropped columns. Thanks, Chris Chamberlin git-svn-id: http://code.djangoproject.com/svn/django/trunk@3047 bcc190cf-cafb-0310-a4f2-bffc1f526a37