From c8bac4b556cf4716dc9003e5da48060cb72ba7cb Mon Sep 17 00:00:00 2001 From: Markus Holtermann Date: Thu, 8 Jan 2015 18:00:04 +0100 Subject: Fixed #24098 -- Added no-op attributes to RunPython and RunSQL MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Thanks Loïc Bistuer and Tim Graham for the discussion and review. --- .../test_migrations_squashed_complex_multi_apps/app1/1_auto.py | 2 +- .../test_migrations_squashed_complex_multi_apps/app1/2_auto.py | 2 +- .../test_migrations_squashed_complex_multi_apps/app1/2_squashed_3.py | 2 +- .../test_migrations_squashed_complex_multi_apps/app1/3_auto.py | 2 +- .../test_migrations_squashed_complex_multi_apps/app1/4_auto.py | 2 +- .../test_migrations_squashed_complex_multi_apps/app2/1_auto.py | 2 +- .../test_migrations_squashed_complex_multi_apps/app2/1_squashed_2.py | 2 +- .../test_migrations_squashed_complex_multi_apps/app2/2_auto.py | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) (limited to 'tests/migrations/test_migrations_squashed_complex_multi_apps') diff --git a/tests/migrations/test_migrations_squashed_complex_multi_apps/app1/1_auto.py b/tests/migrations/test_migrations_squashed_complex_multi_apps/app1/1_auto.py index 25edcfa290..bf12688063 100644 --- a/tests/migrations/test_migrations_squashed_complex_multi_apps/app1/1_auto.py +++ b/tests/migrations/test_migrations_squashed_complex_multi_apps/app1/1_auto.py @@ -7,5 +7,5 @@ from django.db import migrations class Migration(migrations.Migration): operations = [ - migrations.RunPython(lambda apps, schema_editor: None) + migrations.RunPython(migrations.RunPython.noop) ] diff --git a/tests/migrations/test_migrations_squashed_complex_multi_apps/app1/2_auto.py b/tests/migrations/test_migrations_squashed_complex_multi_apps/app1/2_auto.py index dcd67ca101..13a844275b 100644 --- a/tests/migrations/test_migrations_squashed_complex_multi_apps/app1/2_auto.py +++ b/tests/migrations/test_migrations_squashed_complex_multi_apps/app1/2_auto.py @@ -9,5 +9,5 @@ class Migration(migrations.Migration): dependencies = [("app1", "1_auto")] operations = [ - migrations.RunPython(lambda apps, schema_editor: None) + migrations.RunPython(migrations.RunPython.noop) ] diff --git a/tests/migrations/test_migrations_squashed_complex_multi_apps/app1/2_squashed_3.py b/tests/migrations/test_migrations_squashed_complex_multi_apps/app1/2_squashed_3.py index d74691fe44..521e70f5d2 100644 --- a/tests/migrations/test_migrations_squashed_complex_multi_apps/app1/2_squashed_3.py +++ b/tests/migrations/test_migrations_squashed_complex_multi_apps/app1/2_squashed_3.py @@ -14,5 +14,5 @@ class Migration(migrations.Migration): dependencies = [("app1", "1_auto"), ("app2", "2_auto")] operations = [ - migrations.RunPython(lambda apps, schema_editor: None) + migrations.RunPython(migrations.RunPython.noop) ] diff --git a/tests/migrations/test_migrations_squashed_complex_multi_apps/app1/3_auto.py b/tests/migrations/test_migrations_squashed_complex_multi_apps/app1/3_auto.py index f2b64db833..aa0e86e560 100644 --- a/tests/migrations/test_migrations_squashed_complex_multi_apps/app1/3_auto.py +++ b/tests/migrations/test_migrations_squashed_complex_multi_apps/app1/3_auto.py @@ -9,5 +9,5 @@ class Migration(migrations.Migration): dependencies = [("app1", "2_auto"), ("app2", "2_auto")] operations = [ - migrations.RunPython(lambda apps, schema_editor: None) + migrations.RunPython(migrations.RunPython.noop) ] diff --git a/tests/migrations/test_migrations_squashed_complex_multi_apps/app1/4_auto.py b/tests/migrations/test_migrations_squashed_complex_multi_apps/app1/4_auto.py index fa36f18566..145e495a18 100644 --- a/tests/migrations/test_migrations_squashed_complex_multi_apps/app1/4_auto.py +++ b/tests/migrations/test_migrations_squashed_complex_multi_apps/app1/4_auto.py @@ -9,5 +9,5 @@ class Migration(migrations.Migration): dependencies = [("app1", "3_auto")] operations = [ - migrations.RunPython(lambda apps, schema_editor: None) + migrations.RunPython(migrations.RunPython.noop) ] diff --git a/tests/migrations/test_migrations_squashed_complex_multi_apps/app2/1_auto.py b/tests/migrations/test_migrations_squashed_complex_multi_apps/app2/1_auto.py index dcd67ca101..13a844275b 100644 --- a/tests/migrations/test_migrations_squashed_complex_multi_apps/app2/1_auto.py +++ b/tests/migrations/test_migrations_squashed_complex_multi_apps/app2/1_auto.py @@ -9,5 +9,5 @@ class Migration(migrations.Migration): dependencies = [("app1", "1_auto")] operations = [ - migrations.RunPython(lambda apps, schema_editor: None) + migrations.RunPython(migrations.RunPython.noop) ] diff --git a/tests/migrations/test_migrations_squashed_complex_multi_apps/app2/1_squashed_2.py b/tests/migrations/test_migrations_squashed_complex_multi_apps/app2/1_squashed_2.py index fcd43bd0c6..6ef4dba71e 100644 --- a/tests/migrations/test_migrations_squashed_complex_multi_apps/app2/1_squashed_2.py +++ b/tests/migrations/test_migrations_squashed_complex_multi_apps/app2/1_squashed_2.py @@ -14,5 +14,5 @@ class Migration(migrations.Migration): dependencies = [("app1", "1_auto")] operations = [ - migrations.RunPython(lambda apps, schema_editor: None) + migrations.RunPython(migrations.RunPython.noop) ] diff --git a/tests/migrations/test_migrations_squashed_complex_multi_apps/app2/2_auto.py b/tests/migrations/test_migrations_squashed_complex_multi_apps/app2/2_auto.py index 9743fc92a2..35fc7b8c1c 100644 --- a/tests/migrations/test_migrations_squashed_complex_multi_apps/app2/2_auto.py +++ b/tests/migrations/test_migrations_squashed_complex_multi_apps/app2/2_auto.py @@ -9,5 +9,5 @@ class Migration(migrations.Migration): dependencies = [("app2", "1_auto")] operations = [ - migrations.RunPython(lambda apps, schema_editor: None) + migrations.RunPython(migrations.RunPython.noop) ] -- cgit v1.3