summaryrefslogtreecommitdiff
path: root/django/db/backends/postgresql_psycopg2/creation.py
Commit message (Collapse)AuthorAgeFilesLines
* Refs #25175 -- Removed db.backends.postgresql_psycopg2 per deprecation timeline.Tim Graham2019-01-171-1/+0
|
* Refs #25175 -- Added backwards compatibility for importing ↵Caio Ariede2015-08-071-0/+1
| | | | postgresql_psycopg2 backend.
* Fixed #25175 -- Renamed the postgresql_psycopg2 database backend to postgresql.Caio Ariede2015-08-071-13/+0
|
* Removed obsolete SQL generation methods.Tim Graham2015-01-181-38/+0
|
* Fixed #22603 -- Reorganized classes in django.db.backends.Tim Graham2015-01-141-1/+1
|
* Moved DatabaseCreation.data_types properties to DatabaseWrapper.Tim Graham2014-12-311-36/+0
| | | | refs #22340.
* Fixed #2443 -- Added DurationField.Marc Tamlyn2014-12-201-0/+1
| | | | | | | | | | | A field for storing periods of time - modeled in Python by timedelta. It is stored in the native interval data type on PostgreSQL and as a bigint of microseconds on other backends. Also includes significant changes to the internals of time related maths in expressions, including the removal of DateModifierNode. Thanks to Tim and Josh in particular for reviews.
* Fixed #19463 -- Added UUIDFieldMarc Tamlyn2014-09-161-0/+1
| | | | Uses native support in postgres, and char(32) on other backends.
* Limited lines to 119 characters in django/Tim Graham2014-09-051-1/+3
| | | | refs #23395.
* Fixed #22514 -- Prevented indexes on virtual fields [postgres].Vlastimil Zíma2014-06-201-2/+2
|
* Reorganized the database test settingsShai Berger2014-03-091-3/+4
| | | | | | | | | | Change database test settings from "TEST_"-prefixed entries in the database settings dictionary to setting in a dictionary that is itself an entry "TEST" in the database settings. Refs #21775 Thanks Josh Smeaton for review.
* Fixed #17627 -- Renamed util.py files to utils.pyTim Graham2013-09-161-1/+1
| | | | | Thanks PaulM for the suggestion and Luke Granger-Brown and Wiktor Kołodziej for the initial patch.
* Merge branch 'master' into schema-alterationAndrew Godwin2013-07-221-19/+19
|\ | | | | | | | | | | | | | | | | 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
| * A large number of stylistic cleanups across django/db/Alex Gaynor2013-07-081-19/+19
| |
* | Merge remote-tracking branch 'core/master' into schema-alterationAndrew Godwin2013-06-281-2/+0
|\ \ | |/ | | | | | | | | | | Conflicts: django/db/backends/__init__.py django/db/models/fields/related.py tests/field_deconstruction/tests.py
| * Removed several unused imports.Aymeric Augustin2013-06-191-2/+0
| |
* | Merge branch 'master' into schema-alterationAndrew Godwin2013-04-181-13/+5
|\ \ | |/ | | | | | | | | | | | | | | | | | | 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
| * Removed superfluous code now that connections use autocommit by default.Aymeric Augustin2013-03-111-8/+0
| |
| * Added an API to control database-level autocommit.Aymeric Augustin2013-03-111-3/+0
| |
| * Add a BinaryField model fieldClaude Paroz2013-03-021-0/+1
| | | | | | | | | | Thanks Michael Jung, Charl Botha and Florian Apolloner for review and help on the patch.
| * Fixed #19861 -- Transaction ._dirty flag improvementAnssi Kääriäinen2013-02-271-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There were a couple of errors in ._dirty flag handling: * It started as None, but was never reset to None. * The _dirty flag was sometimes used to indicate if the connection was inside transaction management, but this was not done consistently. This also meant the flag had three separate values. * The None value had a special meaning, causing for example inability to commit() on new connection unless enter/leave tx management was done. * The _dirty was tracking "connection in transaction" state, but only in managed transactions. * Some tests never reset the transaction state of the used connection. * And some additional less important changes. This commit has some potential for regressions, but as the above list shows, the current situation isn't perfect either.
| * Created special PostgreSQL text indexes when unique is TrueClaude Paroz2013-01-071-1/+1
| | | | | | | | Refs #19441.
| * Fixed #19441 -- Created PostgreSQL varchar index when unique=TrueClaude Paroz2012-12-181-4/+4
| | | | | | | | | | Thanks Dylan Verheul for the report and Anssi Kääriäinen for the review.
* | Add check constraint support - needed a few Field changesAndrew Godwin2012-09-071-2/+7
|/
* Used symbolic constants for psycopg2 isolation levels.Aymeric Augustin2011-11-191-1/+4
| | | | | | | | | | | Django used the value 1 = ISOLATION_LEVEL_READ_UNCOMMITTED in some places, but PostgreSQL doesn't provide "read uncommited", it uses "read committed" instead: http://www.postgresql.org/docs/9.1/static/transaction-iso.html. For clarity, this commit uses ISOLATION_LEVEL_READ_COMMITTED = 2 where 1 was previously used. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17112 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #12308 -- Added tablespace support to the PostgreSQL backend.Aymeric Augustin2011-10-141-5/+3
| | | | git-svn-id: http://code.djangoproject.com/svn/django/trunk@16987 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #16250 -- Made test database creation support code in the PostgreSQL ↵Ramiro Morales2011-07-061-0/+8
| | | | | | | | | | | | | | | | | | | DB backend compatible with psycopg2 2.4.2. Implemented this by adding an internal hook for work that should be performed before that point. Also, regarding the `DatabaseCreation.set_autocommit()` method: * Stop using it for such tasks * Stop providing an implementation that tries to cover all the possible idioms a third party database backend DB-API 2 driver could need to activate autocommit. It is now left for third party backends to implement. This can be backwards incompatible in the case of user applications that: * Had started using this method * Use a third a party database backend git-svn-id: http://code.djangoproject.com/svn/django/trunk@16520 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #811 -- Added support for IPv6 to forms and model fields. Many thanks ↵Jannis Leidel2011-06-111-0/+1
| | | | | | to Erik Romijn. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16366 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Deprecated the psycopg-based postgresql database backend.Russell Keith-Magee2011-04-021-0/+77
| | | | git-svn-id: http://code.djangoproject.com/svn/django/trunk@15980 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Removed some empty modules that are no longer required after [8296].Russell Keith-Magee2008-08-111-0/+0
| | | | git-svn-id: http://code.djangoproject.com/svn/django/trunk@8301 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #5461 -- Refactored the database backend code to use classes for the ↵Russell Keith-Magee2008-08-111-1/+0
| | | | | | 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
* Added postgresql_psycopg2 backend, which is untested, just for a starting pointAdrian Holovaty2006-05-161-0/+1
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2928 bcc190cf-cafb-0310-a4f2-bffc1f526a37