diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-07-20 07:34:21 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-07-26 11:41:19 +0200 |
| commit | a1e9e9abc592b8f44fa798c6e4e225b1a04f757c (patch) | |
| tree | 7c0713759aa50f55b639433675015e385c434e04 /django/db | |
| parent | c773d5794eb425c4836c726bdf6e1e742c94e9c0 (diff) | |
Refs #27236 -- Reverted "Refs #27236 -- Added generic mechanism to handle the deprecation of migration operations."
This reverts commit 41019e48bbf082c985e6ba3bad34d118b903bff1.
Diffstat (limited to 'django/db')
| -rw-r--r-- | django/db/migrations/migration.py | 6 | ||||
| -rw-r--r-- | django/db/migrations/operations/base.py | 5 |
2 files changed, 1 insertions, 10 deletions
diff --git a/django/db/migrations/migration.py b/django/db/migrations/migration.py index 7cc3e22361..ea9d02a94a 100644 --- a/django/db/migrations/migration.py +++ b/django/db/migrations/migration.py @@ -219,12 +219,6 @@ class Migration: name = new_name return name - def check(self): - errors = [] - for operation in self.operations: - errors.extend(operation.check_deprecation_details()) - return errors - class SwappableTuple(tuple): """ diff --git a/django/db/migrations/operations/base.py b/django/db/migrations/operations/base.py index 40128174c7..7d4dff2597 100644 --- a/django/db/migrations/operations/base.py +++ b/django/db/migrations/operations/base.py @@ -1,8 +1,7 @@ from django.db import router -from django.utils.deprecation import DeprecationForHistoricalMigrationMixin -class Operation(DeprecationForHistoricalMigrationMixin): +class Operation: """ Base class for migration operations. @@ -34,8 +33,6 @@ class Operation(DeprecationForHistoricalMigrationMixin): serialization_expand_args = [] - check_type = "migrations" - def __new__(cls, *args, **kwargs): # We capture the arguments to make returning them trivial self = object.__new__(cls) |
