summaryrefslogtreecommitdiff
path: root/django/db/backends/mysql/creation.py
Commit message (Collapse)AuthorAgeFilesLines
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-071-21/+40
|
* Refs #32061 -- Unified DatabaseClient.runshell() in db backends.Simon Charette2020-10-291-5/+7
|
* Fixed #29501 -- Allowed dbshell to pass options to underlying tool.Adam Johnson2020-04-141-2/+2
|
* 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 #30636 -- Fixed options ordering when cloning test database on MySQL.Yann Sionneau2019-07-161-2/+1
| | | | --defaults-file must be given before other options.
* 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 #29882 -- Added events and stored routines to MySQL's cloned test ↵thomazzo2018-10-291-3/+3
| | | | databases.
* Fixed #29827 -- Fixed reuse of test databases with --keepdb on MySQL.Sergey Fedoseev2018-10-251-11/+6
| | | Regression in e1253bc26facfa1d0fca161f43925e99c2591ced.
* Fixed ResourceWarning in MySQL's _clone_test_db().Jon Dufresne2018-10-021-4/+4
|
* Refs #29654 -- Replaced three dots with ellipsis character in output strings.Claude Paroz2018-08-221-1/+1
|
* Fixed #29040 -- Made test database creation messages use a consistent output ↵Claude Paroz2018-07-191-3/+3
| | | | stream.
* Fixed #28578 -- Renamed DatabaseCreation number arguments to suffix.Jon Dufresne2017-09-111-2/+2
|
* Refs #25406 -- Removed exception hiding in MySQL test database creation ↵Mariusz Felisiak2017-04-131-7/+28
| | | | | during --keepdb. Thanks Adam Johnson, Simon Charette and Tim Graham for reviews.
* Removed unused variables that are overwritten.Mads Jensen2017-01-251-1/+1
|
* 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/+36
|
* Removed obsolete SQL generation methods.Tim Graham2015-01-181-30/+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-39/+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 #19716 -- Added support for microseconds with MySQL 5.6.4 and upClaude Paroz2014-10-281-1/+9
| | | | Thanks erik@cederstrand.dk for the report and Tim Graham for the review.
* Fixed #19463 -- Added UUIDFieldMarc Tamlyn2014-09-161-0/+1
| | | | Uses native support in postgres, and char(32) on other backends.
* Reorganized the database test settingsShai Berger2014-03-091-4/+5
| | | | | | | | | | 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.
* A large number of stylistic cleanups across django/db/Alex Gaynor2013-07-081-18/+19
|
* 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.
* Add sqldropindexes to manageTomasz Rybak2013-02-241-0/+26
| | | | | | | Change patch from https://code.djangoproject.com/ticket/5568 to work on modern Django. Add special case for MySQL which has different syntax for DROP INDEX. Add unit tests for the new functionality.
* This function is unused and should have been removed a few releases ago.Alex Gaynor2013-02-191-23/+0
|
* Fixed #19677 -- Introspection of recursive foreign keys under SQLite.Aymeric Augustin2013-01-281-1/+1
| | | | Thanks Simon Charette.
* 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
* Fixed #1142 -- Added multiple database support.Russell Keith-Magee2009-12-221-10/+8
| | | | | | | | | | | | | | | | | 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 #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/+68
| | | | | | 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