summaryrefslogtreecommitdiff
path: root/django/db/backends/postgresql/creation.py
Commit message (Collapse)AuthorAgeFilesLines
* Prevented PostgreSQL's DatabaseCreation._execute_create_test_db() from ↵Tim Graham2023-04-031-2/+1
| | | | | hiding clause-less exceptions. Regression in 3cafb783f3f711c7413ba2b8d7c8ff750bd4d6e1.
* Refs #33308 -- Moved psycopg2 imports to the psycopg_any module.Florian Apolloner2022-12-121-2/+1
|
* Refs #33308 -- Used psycopg's errors instead of errorcodes.Florian Apolloner2022-12-011-2/+3
|
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-071-20/+27
|
* Refs #32508 -- Raised ImproperlyConfigured/TypeError instead of using "assert".Mateo Radman2021-07-051-3/+6
|
* Refs #31233 -- Changed DatabaseWrapper._nodb_connection to _nodb_cursor().Jon Dufresne2020-02-061-1/+1
| | | | | | It is now a method instead of a property and returns a context manager that yields a cursor on entry and closes the cursor and connection upon exit.
* Changed re-raising an exception to use bare raise syntax where appropriate.Jon Dufresne2020-01-201-1/+1
|
* Fixed #30184 -- Removed ellipsis characters from shell output strings.Dan Davis2019-02-131-1/+1
| | | | Partially reverted 50b8493581fea3d7137dd8db33bac7008868d23a (refs #29654) to avoid a crash when the user shell doesn't support non-ASCII characters.
* Fixed F841 flake8 warning.Mariusz Felisiak2018-10-241-1/+1
|
* Refs #29654 -- Replaced three dots with ellipsis character in output strings.Claude Paroz2018-08-221-1/+1
|
* Fixed #29613 -- Fixed --keepdb on PostgreSQL if the database exists and the ↵Mariusz Felisiak2018-08-031-0/+9
| | | | | | | user can't create databases. Regression in e776dd2db677d58dcb50aea20d3bb191537df25b. Thanks Tim Graham for the review.
* Fixed #29040 -- Made test database creation messages use a consistent output ↵Claude Paroz2018-07-191-3/+3
| | | | stream.
* Fixed #28982 -- Simplified code with and/or.Дилян Палаузов2018-01-031-3/+1
|
* Fixed #28578 -- Renamed DatabaseCreation number arguments to suffix.Jon Dufresne2017-09-111-2/+2
|
* Fixed #28116 -- Used error code filtering in PostgreSQL test database creation.Mariusz Felisiak2017-04-251-3/+4
| | | Thanks Claude Paroz and Tim Graham for reviews.
* Fixed #25406 -- Removed exception hiding in PostgreSQL test database ↵Mariusz Felisiak2017-04-101-9/+22
| | | | | creation during --keepdb. Thanks Markus Holtermann and Tim Graham for reviews.
* Removed unused variables that are overwritten.Mads Jensen2017-01-251-1/+1
|
* Fixed #27061 -- Added a TEST['TEMPLATE'] setting for PostgreSQL.Chris Jerdonek2016-08-231-9/+22
|
* Refs #25196 -- Fixed incorrect argument order in test database creation.Tim Graham2015-11-131-1/+1
|
* Fixed #25196 -- Normalized database representations in test database messages.Ville Skyttä2015-09-251-1/+3
| | | | Left over Oracle mostly as-is since it's more complicated.
* Cloned databases for running tests in parallel.Aymeric Augustin2015-09-091-0/+28
|
* Fixed #25175 -- Renamed the postgresql_psycopg2 database backend to postgresql.Caio Ariede2015-08-071-0/+13
|
* Deprecated the psycopg-based postgresql database backend.Russell Keith-Magee2011-04-021-76/+0
| | | | git-svn-id: http://code.djangoproject.com/svn/django/trunk@15980 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #13773 -- Passed in the current connection in a call to db_type(). ↵Russell Keith-Magee2010-07-301-1/+1
| | | | | | Thanks to Suor for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13451 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #8901 -- Reapplied r13328 (with extra docs) now that we have a 1.3 ↵Russell Keith-Magee2010-06-211-1/+2
| | | | | | development branch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13363 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Refs #8901 -- Reverted r13328 because the patch imposes a minimum version ↵Russell Keith-Magee2010-06-101-2/+1
| | | | | | requirement of Postgres 8.0; we can't impose that on Django 1.2, so we need to wait until the 1.3 is branched before we can apply this change. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13348 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #8901 -- Corrected the PostgreSQL sequence reset code when field ↵Russell Keith-Magee2010-06-071-1/+2
| | | | | | identifiers exceed the maximum identifier length. Thanks to adam@zuerchertech.com for the report, and Matt Hoskins for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13328 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #1142 -- Added multiple database support.Russell Keith-Magee2009-12-221-4/+3
| | | | | | | | | | | | | | | | | This monster of a patch is the result of Alex Gaynor's 2009 Google Summer of Code project. Congratulations to Alex for a job well done. Big thanks also go to: * Justin Bronn for keeping GIS in line with the changes, * Karen Tracey and Jani Tiainen for their help testing Oracle support * Brett Hoerner, Jon Loyens, and Craig Kimmerer for their feedback. * Malcolm Treddinick for his guidance during the GSoC submission process. * Simon Willison for driving the original design process * Cal Henderson for complaining about ponies he wanted. ... and everyone else too numerous to mention that helped to bring this feature into fruition. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11952 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #12234 -- Create additional indexes that use the appropriate operation ↵Justin Bronn2009-12-191-0/+39
| | | | | | class for PostgreSQL `varchar` and `text` columns when `db_index=True`. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11912 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #399: Added big integer field. Thanks to Tomáš Kopeček for ↵Karen Tracey2009-12-171-0/+1
| | | | | | persistently maintaining a patch for this. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11887 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #8210 and #8664: moved `USStateField` and `PhoneNumberField` to ↵Jacob Kaplan-Moss2008-09-011-2/+0
| | | | | | `django.contrib.localflavor.us`. This is a backwards-incompatible change, albeit a minor one; just add an aditional `import` and go on your way. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8819 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #5461 -- Refactored the database backend code to use classes for the ↵Russell Keith-Magee2008-08-111-28/+38
| | | | | | 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
* Fixed #7805 -- Removed ImageField.get_internal_type() because it doesn't ↵Adrian Holovaty2008-07-181-1/+0
| | | | | | offer anything beyond FileField's implementation. Thanks, Gulopine git-svn-id: http://code.djangoproject.com/svn/django/trunk@7947 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #231: all fields that should take max_length now do. Thanks, Don ↵Jacob Kaplan-Moss2007-09-191-3/+3
| | | | | | Spaulding. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6378 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #2101 -- Renamed `maxlength` argument to `max_length` for oldforms ↵Gary Wilson Jr2007-08-051-3/+3
| | | | | | `FormField`s and db model `Field`s. This is fully backwards compatible at the moment since the legacy `maxlength` argument is still supported. Using `maxlength` will, however, issue a `PendingDeprecationWarning` when used. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5803 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Added a db_type() method to the database Field class. This is a hook for ↵Adrian Holovaty2007-07-201-1/+0
| | | | | | calculating the database column type for a given Field. Also converted all management.py CREATE TABLE statements to use db_type(), which made that code cleaner. The Field.get_internal_type() hook still exists, but we should consider removing it at some point, because db_type() is more general. Also added docs -- the beginnings of docs on how to create custom database Field classes. This is backwards-compatible. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5725 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #2365, #3324 -- Renamed FloatField to DecimalField and changed the codeMalcolm Tredinnick2007-05-211-1/+2
| | | | | | | | | | | | | | | | | | 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
* Fixed #1477: URLFields now accept a maxlength parameter. Thanks, Matt Croydon.Jacob Kaplan-Moss2007-01-081-1/+0
| | | | git-svn-id: http://code.djangoproject.com/svn/django/trunk@4295 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* MERGED MAGIC-REMOVAL BRANCH TO TRUNK. This change is highly ↵Adrian Holovaty2006-05-021-0/+30
backwards-incompatible. Please read http://code.djangoproject.com/wiki/RemovingTheMagic for upgrade instructions. git-svn-id: http://code.djangoproject.com/svn/django/trunk@2809 bcc190cf-cafb-0310-a4f2-bffc1f526a37