summaryrefslogtreecommitdiff
path: root/django/db/backends/creation.py
AgeCommit message (Collapse)Author
2015-01-14Fixed #22603 -- Reorganized classes in django.db.backends.Tim Graham
2015-01-06Fixed #12663 -- Formalized the Model._meta API for retrieving fields.Daniel Pyrathon
Thanks to Russell Keith-Magee for mentoring this Google Summer of Code 2014 project and everyone else who helped with the patch!
2014-12-31Moved DatabaseCreation.data_types properties to DatabaseWrapper.Tim Graham
refs #22340.
2014-12-23Replaced DatabaseCreation sql methods by schema editor equivalentsClaude Paroz
Also used schema editor in migrate to sync unmigrated apps (sync_apps). Refs #22340. Thanks Tim Graham for the review.
2014-12-12Fixed postgis test database initializationClaude Paroz
Refs #20968. Allow querying template_postgis presence without existing test database. Thanks Tim Graham for the review.
2014-12-08Fixed #20968 -- Checked Spatialite metadata before migrationsClaude Paroz
Thanks Kenial S. Lee for the initial patch and Tim Graham for the review.
2014-10-24Fixed #23652 -- Restored database name after destroying test databaseClaude Paroz
Thanks Bjarkias for the report.
2014-10-16Fixed #23660 -- Moved sort_dependencies to core.Collin Anderson
2014-09-06Fixed #23416 -- Make sure DatabaseCreation respects checks.Marc Tamlyn
Migrations respected Field.db_parameters()['check'], but DatabaseCreation was still using just Field.db_type().
2014-09-05Limited lines to 119 characters in django/Tim Graham
refs #23395.
2014-08-09Removed unused migrate optionClaude Paroz
2014-07-21Fixed #23039: Don't try to serialize unmanaged models in testsAndrew Godwin
2014-06-23Fixed #22487: Don't flush out data from before normal TestCasesAndrew Godwin
2014-06-09Dropped support for SpatiaLite < 2.4.Tim Graham
2014-06-09Tweaked order of create_test_db arguments for backwards compatibility.Tim Graham
Since `serialize` was backported to 1.7, it should appear before `keepdb`.
2014-06-08Fixed #22487: Optional rollback emulation for migrated appsAndrew Godwin
2014-06-05Fixed #20550 -- Added keepdb argument to destroy_test_dbGreg Chapple
2014-05-28Fixed #20550 -- Added ability to preserve test db between runsGreg Chapple
2014-03-21Removed unused imports.Tim Graham
2014-03-21Removed BaseDatabaseCreation.set_autocommit per deprecation timeline.Aymeric Augustin
2014-03-09Reorganized the database test settingsShai Berger
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.
2014-03-08Fixed #21188 -- Introduced subclasses for to-be-removed-in-django-XX warningsClaude Paroz
Thanks Anssi Kääriäinen for the idea and Simon Charette for the review.
2014-02-02Ensure cursors are closed when no longer needed.Michael Manfre
This commit touchs various parts of the code base and test framework. Any found usage of opening a cursor for the sake of initializing a connection has been replaced with 'ensure_connection()'.
2013-11-09flake8 fixAlex Gaynor
2013-11-09Don't initialize PostGIS-specific stuff for non-db connectionsClaude Paroz
Refs #16969.
2013-11-09Fixed #16969 -- Don't connect to named database when possibleClaude Paroz
Thanks Andreas Pelme for the report and initial patch, and Aymeric Augustin, Shai Berger and Tim Graham for the reviews.
2013-10-17Fixed #21285 -- Fixed E121,E122 pep8 warningsAlasdair Nicol
2013-10-14Fixed #15888 -- Made tablename argument of createcachetable optionalClaude Paroz
Thanks Aymeric Augustin for the report and the documentation and Tim Graham for the review.
2013-09-16Fixed #17627 -- Renamed util.py files to utils.pyTim Graham
Thanks PaulM for the suggestion and Luke Granger-Brown and Wiktor Kołodziej for the initial patch.
2013-09-06Fixed #10164 -- Made AutoField increase monotonically on SQLiteChris Wilson
Thanks malte for the report.
2013-08-09Merge remote-tracking branch 'core/master' into schema-alterationAndrew Godwin
Conflicts: django/core/management/commands/flush.py django/core/management/commands/syncdb.py django/db/models/loading.py docs/internals/deprecation.txt docs/ref/django-admin.txt docs/releases/1.7.txt
2013-08-02Fixed #17519 -- Fixed missing SQL constraints to proxy models.Tim Graham
Thanks thibaultj for the report, jenh for the patch, and charettes for the tests.
2013-07-30Rename pre_ and post_syncdb to *_migrate, with aliases from old namesAndrew 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-02Merge branch 'master' into schema-alterationAndrew Godwin
2013-06-29Advanced deprecation warnings for Django 1.7.Aymeric Augustin
2013-06-19Fix test running with new apps stuff/migrate actually running migrationsAndrew Godwin
2013-06-07Merge remote-tracking branch 'core/master' into schema-alterationAndrew Godwin
Conflicts: django/db/models/fields/related.py
2013-05-26Replaced `and...or...` constructs with PEP 308 conditional expressions.Ramiro Morales
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-03-11Improved the API of set_autocommit.Aymeric Augustin
2013-03-11Removed superfluous code now that connections use autocommit by default.Aymeric Augustin
2013-03-11Added an API to control database-level autocommit.Aymeric Augustin
2013-02-27Fixed #19861 -- Transaction ._dirty flag improvementAnssi Kääriäinen
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.
2013-02-24Add sqldropindexes to manageTomasz Rybak
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.
2013-02-20Added a db_constraint option to ForeignKeys.Alex Gaynor
This controls whether or not a database level cosntraint is created. This is useful in a few specialized circumstances, but in general should not be used!
2013-02-08Moved import in db.backends.creationClaude Paroz
2013-01-28Fixed #19677 -- Introspection of recursive foreign keys under SQLite.Aymeric Augustin
Thanks Simon Charette.
2012-12-18Merge remote-tracking branch 'core/master' into schema-alterationAndrew Godwin
Conflicts: django/db/models/loading.py django/db/models/options.py