summaryrefslogtreecommitdiff
path: root/tests/schema/models.py
AgeCommit message (Collapse)Author
2024-08-01Reverted "Fixed #28646 -- Prevented duplicate index when unique is set to ↵Sarah Boyce
True on PostgreSQL." This reverts commit 9cf9c796be8dd53bc3b11355ff39d65c81d7be6d due to a crash on Oracle as it didn't allow multiple indexes on the same field.
2024-07-30Fixed #28646 -- Prevented duplicate index when unique is set to True on ↵Ben Cail
PostgreSQL.
2022-06-03Refs #27236 -- Moved models with Meta.index_together inside of test methods.David Wobrock
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2021-05-21Fixed #32503 -- Fixed altering BLOB/TEXT field to non-nullable with default ↵Yuekui Li
on MySQL 8.0.13+. MySQL 8.0.13+ supports defaults for BLOB/TEXT but not in the ALTER COLUMN statement. Regression in 6b16c91157512587017e9178d066ed1a683e7795. Thanks Matt Westcott for the report.
2020-03-23Added missing Meta.apps to a schema model.Tim Graham
2019-03-17Refs #30172 -- Prevented removing a model Meta's index/unique_together from ↵Paveł Tyślacki
removing Meta constraints/indexes.
2019-03-17Refs #30172 -- Prevented removing a field's check or unique constraint from ↵Paveł Tyślacki
removing Meta constraints.
2018-06-17Fixed #29496 -- Fixed crash on Oracle when converting a non-unique field to ↵Mariusz Felisiak
primary key. Thanks Tim Graham for the review.
2017-05-24Fixed #27860 -- Dropped varchar_pattern_ops/text_pattern_ops index before ↵Mariusz Felisiak
altering char/text field in PostgreSQL. Thanks Tim Graham for the review.
2017-05-23Fixed #27859 -- Ignored db_index for TextField/BinaryField on Oracle and MySQL.Mariusz Felisiak
Thanks Zubair Alam for the initial patch and Tim Graham for the review.
2017-05-01Fixed #28052 -- Prevented dropping Meta.indexes when changing db_index to False.Markus Holtermann
Thanks Marc Tamlyn for the report and Ian Foote/Tim Graham for review.
2017-01-18Refs #23919 -- Removed python_2_unicode_compatible decorator usageClaude Paroz
2016-12-23Refs #26384 -- Isolated a test model in schema tests.Simon Charette
2016-06-29Fixed #25694 -- Removed incorrect _uniq suffix on index names during migrations.Jon Dufresne
2016-03-29Fixed #26384 -- Fixed renaming the PK on a model with a self-referential FK ↵Alex Hill
on SQLite.
2015-07-27Fixed #21127 -- Started deprecation toward requiring on_delete for ↵Flavio Curella
ForeignKey/OneToOneField
2015-07-15Fixed #25128 -- Fixed SQLite SchemaEditor crash when adding a ForeignObject ↵Tim Graham
field.
2015-06-15Fixed #24972 -- Fixed removing unique_together indexes on MySQL.Adam Brenecki
2015-06-02Fixed #24893 -- Fixed lack of unique constraint when changing a field from ↵Tim Graham
primary_key=True to unique=True
2015-06-02Fixed #24892 -- Fixed quoting of SQL when renaming a field to AutoField in ↵Tim Graham
PostgreSQL
2015-05-28Fixed #24817 -- Prevented loss of null info in MySQL field renaming.Andriy Sokolovskiy
2015-04-19Fixed #24658 -- Added missing Meta attribute in schema testsClaude Paroz
Without that, the Note model would be initially created and then the tests using that model failed when run in isolation.
2015-02-05Cleaned up schema testsMarkus Holtermann
Thanks Tim Graham for the review.
2015-01-19Fixed #24163 -- Removed unique constraint after index on MySQLMarkus Holtermann
Thanks Łukasz Harasimowicz for the report.
2014-12-04Fixed #23920 -- Fixed MySQL crash when adding blank=True to TextField.Tim Graham
Thanks wkornewald for the report and Markus Holtermann for review.
2014-10-31Fixed #23738 -- Allowed migrating from NULL to NOT NULL with the same ↵Markus Holtermann
default value Thanks to Andrey Antukh for the report.
2014-08-09Fixed #23264: Schema backends honour db_constraintAndrew Godwin
2014-07-21Fixed #23009: Shorten FK identifiers in add_field and make consistentAndrew Godwin
2014-05-08Fixed #22476: Couldn't alter attributes on M2Ms with through= setAndrew Godwin
2014-03-08Fixed #22183: Through M2Ms now correctly handledAndrew Godwin
2013-12-27Amend test table name so it doesn't clash.Ramiro Morales
Refs #21692 and 3efd1b8b939.
2013-12-27Fixed #21692 -- Quote table name when creating it.Ramiro Morales
2013-12-24Renamed AppCache to Apps.Aymeric Augustin
Also renamed app_cache to apps and "app cache" to "app registry". Deprecated AppCache.app_cache_ready() in favor of Apps.ready().
2013-12-22Moved apps back in the toplevel django namespace.Aymeric Augustin
Reverted 4a56a93cc458e9ab4dcab95d9f5067d4975dd1a2.
2013-12-17Deborgified the app cache.Aymeric Augustin
Improved Andrew's hack to create temporary app caches to handle migrations. Now the main app cache has a "master" flag set to True (which is a non-default keyword argument, thus unlikely to be used by mistake). Other app cache instances have "master" set to False. The only sanctioned way to access the app cache is by importing django.core.apps.app_cache. If you were instanciating an app cache and relying on the Borg pattern, you'll have to refactor your code.
2013-12-17Moved the new app cache inside core.Aymeric Augustin
2013-12-17Moved django.db.models.loading to django.apps.cache.Aymeric Augustin
This commit doesn't contain any code changes; it's purely a refactoring.
2013-11-24Fixed #21497 -- Forced conversion to bytes for very long index namesJoel Bohman
2013-09-03Updated syncdb -> migrate in tests.Tim Graham
2013-08-19Add more stringent M2M tests and fix the bug they exposedAndrew Godwin
2013-08-11Support index_together during model creationAndrew Godwin
2013-05-09Split out a BaseAppCache, make AppCache borg again, add _meta.app_cacheAndrew Godwin
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