Refs #27236 -- Reverted "Refs #27236 -- Added generic mechanism to handle the deprecation of migration operations."

This reverts commit 41019e48bb.
This commit is contained in:
Mariusz Felisiak 2022-07-20 07:34:21 +02:00
parent c773d5794e
commit a1e9e9abc5
12 changed files with 24 additions and 230 deletions

View file

@ -1,22 +1,11 @@
from unittest import mock
from django.db import migrations
from django.db.migrations.operations.base import Operation
class DummyOperation(Operation):
def state_forwards(self, app_label, state):
pass
def database_forwards(self, app_label, schema_editor, from_state, to_state):
pass
def database_backwards(self, app_label, schema_editor, from_state, to_state):
pass
try:
from django.contrib.postgres.operations import CryptoExtension
except ImportError:
CryptoExtension = DummyOperation
CryptoExtension = mock.Mock()
class Migration(migrations.Migration):