summaryrefslogtreecommitdiff
path: root/django/db/backends/sqlite3/creation.py
Commit message (Collapse)AuthorAgeFilesLines
* Refs #33173 -- Fixed destroying test databases when running tests in ↵Mariusz Felisiak2022-10-261-0/+1
| | | | | | parallel using spawn on Windows. Thanks Simon Willison for inspiration.
* Fixed #31169 -- Adapted the parallel test runner to use spawn.David Smith2022-03-151-5/+55
| | | | | Co-authored-by: Valz <ahmadahussein0@gmail.com> Co-authored-by: Nick Pope <nick@nickpope.me.uk>
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-071-22/+27
|
* Fixed #32582 -- Removed unnecessary dot in names of cloned test databases on ↵Girish Sontakke2021-03-251-1/+1
| | | | SQLite.
* Fixed #30413 -- Fixed test database signature on SQLite when test database ↵Farhaan Bukhsh2019-11-211-0/+2
| | | | | | | | name is provided. Previously, the same signature was created for multiple in-memory databases on SQLite when they had tests databases names DATABASES['TEST']['NAME'].
* Refs #29983 -- Added support for using pathlib.Path in all settings.Jon Dufresne2019-11-071-1/+4
|
* Fixed #30184 -- Removed ellipsis characters from shell output strings.Dan Davis2019-02-131-2/+2
| | | | Partially reverted 50b8493581fea3d7137dd8db33bac7008868d23a (refs #29654) to avoid a crash when the user shell doesn't support non-ASCII characters.
* Refs #29784 -- Switched to https:// links where available.Jon Dufresne2018-09-261-1/+1
|
* Refs #29654 -- Replaced three dots with ellipsis character in output strings.Claude Paroz2018-08-221-2/+2
|
* Fixed #29040 -- Made test database creation messages use a consistent output ↵Claude Paroz2018-07-191-6/+6
| | | | stream.
* Refs #28909 -- Simplifed code using unpacking generalizations.Mariusz Felisiak2018-02-261-3/+1
|
* Fixed #28769 -- Replaced 'x if x else y' with 'x or y'.Дилян Палаузов2017-11-071-3/+1
|
* Refs #28584 -- Removed unused DatabaseFeatures.can_share_in_memory_db.Tim Graham2017-10-031-11/+2
|
* Fixed #28578 -- Renamed DatabaseCreation number arguments to suffix.Jon Dufresne2017-09-111-4/+4
|
* Refs #27795 -- Removed unneeded force_text callsClaude Paroz2017-03-041-2/+1
| | | | Thanks Tim Graham for the review.
* Refs #27656 -- Updated django.db docstring verbs according to PEP 257.Anton Samarchyan2017-02-281-1/+1
|
* Refs #23919 -- Removed most of remaining six usageClaude Paroz2017-01-181-1/+0
| | | | Thanks Tim Graham for the review.
* Fixed #27077 -- Made SQLite's in-memory database checks DRYer.Chris Jerdonek2016-08-171-5/+10
|
* Fixed #27078 -- Simplified "if" logic in SQLite's _get_test_db_name().Chris Jerdonek2016-08-171-10/+11
|
* Refs #12118 -- Allowed "mode=memory" in SQLite test database names.Riccardo Magliocchetti2015-10-061-3/+5
|
* Fixed #25196 -- Normalized database representations in test database messages.Ville Skyttä2015-09-251-2/+6
| | | | Left over Oracle mostly as-is since it's more complicated.
* Cloned databases for running tests in parallel.Aymeric Augustin2015-09-091-0/+34
|
* Removed obsolete SQL generation methods.Tim Graham2015-01-181-8/+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-33/+0
| | | | refs #22340.
* Fixed #12118 -- Added shared cache support to SQLite in-memory testing.Andriy Sokolovskiy2014-12-301-4/+13
|
* 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/+4
| | | | refs #23395.
* Fixed #20550 -- Added ability to preserve test db between runsGreg Chapple2014-05-281-1/+3
|
* Reorganized the database test settingsShai Berger2014-03-091-2/+2
| | | | | | | | | | 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 #10164 -- Made AutoField increase monotonically on SQLiteChris Wilson2013-09-061-0/+3
| | | | Thanks malte for the report.
* A large number of stylistic cleanups across django/db/Alex Gaynor2013-07-081-24/+25
|
* 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 #19162 -- Wrong indentation.Jan Bednařík2012-10-221-5/+5
|
* [py3] Replaced raw_input by inputClaude Paroz2012-08-081-1/+2
| | | | | The six addition has been borrowed from: https://bitbucket.org/gutworth/six/changeset/733ef740
* Replaced print statement by print function (forward compatibility syntax).Claude Paroz2012-04-301-2/+2
|
* Fixed #18013 -- Use the new 'as' syntax for exceptions.Claude Paroz2012-04-291-1/+1
| | | | | Thanks Clueless for the initial patch. Note that unittest has been purposely left out (external package only used by Python 2.6).
* Fixed #16329 -- Fixed detection of transaction-handling capabilities when ↵Ramiro Morales2012-03-131-0/+15
| | | | | | | | all test databases are sqlite3, in-memory. Thanks canassa for the report and agriffis (#17762) and lrekucki (in #17758) for their contribution to the fix. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17702 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #16250 -- Made test database creation support code in the PostgreSQL ↵Ramiro Morales2011-07-061-0/+3
| | | | | | | | | | | | | | | | | | | 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
* Fixed error introduced in r14666 that results in the message reporting the ↵Ramiro Morales2010-12-081-4/+8
| | | | | | | | test DB name to be created being shown actually after the real action when the operation fails. Implemented that by factoring out calculation of test DB name to an internal method. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14861 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Rationalized the verbosity levels (including introducing a new super-verbose ↵Russell Keith-Magee2010-08-071-5/+1
| | | | | | level) for syncdb, test and loaddata. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13539 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #1142 -- Added multiple database support.Russell Keith-Magee2009-12-221-6/+5
| | | | | | | | | | | | | | | | | 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 #8355: Removed some whitespace that was apparently causing difficulty ↵Russell Keith-Magee2008-08-161-2/+1
| | | | | | with script compilation. Thanks to bear330 for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8402 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #8331 -- Added style parameter to sqlite backend implementation of ↵Russell Keith-Magee2008-08-151-1/+1
| | | | | | sql_remove_table_constraints, missed in recent db backend refactor. Thanks to d00gs for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8364 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #5461 -- Refactored the database backend code to use classes for the ↵Russell Keith-Magee2008-08-111-27/+73
| | | | | | 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