diff --git a/reversion/migrations/0002_add_index_on_version_for_content_type_and_db.py b/reversion/migrations/0005_add_index_on_version_for_content_type_and_db.py similarity index 84% rename from reversion/migrations/0002_add_index_on_version_for_content_type_and_db.py rename to reversion/migrations/0005_add_index_on_version_for_content_type_and_db.py index 75a5a691..06296632 100644 --- a/reversion/migrations/0002_add_index_on_version_for_content_type_and_db.py +++ b/reversion/migrations/0005_add_index_on_version_for_content_type_and_db.py @@ -6,7 +6,7 @@ class Migration(migrations.Migration): dependencies = [ - ('reversion', '0001_squashed_0004_auto_20160611_1202'), + ('reversion', '0003_auto_20201027_1546'), ] operations = [ diff --git a/tests/test_project/settings.py b/tests/test_project/settings.py index b5c6f78f..ec05a201 100644 --- a/tests/test_project/settings.py +++ b/tests/test_project/settings.py @@ -82,16 +82,21 @@ "NAME": os.path.join(BASE_DIR, "db.sqlite3"), }, "postgres": { - "ENGINE": "django.db.backends.postgresql_psycopg2", "HOST": os.environ.get("DJANGO_DATABASE_HOST_POSTGRES", ""), - "NAME": os.environ.get("DJANGO_DATABASE_NAME_POSTGRES", "test_project"), + "ENGINE": "django.db.backends.sqlite3", + # "ENGINE": "django.db.backends.postgresql_psycopg2", + "NAME": os.path.join(BASE_DIR, "test_project_postgres.sqlite3"), + # "NAME": os.environ.get("DJANGO_DATABASE_NAME_POSTGRES", "test_project"), "USER": os.environ.get("DJANGO_DATABASE_USER_POSTGRES", getpass.getuser()), "PASSWORD": os.environ.get("DJANGO_DATABASE_PASSWORD_POSTGRES", ""), }, "mysql": { - "ENGINE": "django.db.backends.mysql", + # "ENGINE": "django.db.backends.mysql", + # "NAME": os.environ.get("DJANGO_DATABASE_NAME_MYSQL", "test_project"), + "ENGINE": "django.db.backends.sqlite3", + "NAME": os.path.join(BASE_DIR, "test_project_mysql.sqlite3"), + "HOST": os.environ.get("DJANGO_DATABASE_HOST_MYSQL", ""), - "NAME": os.environ.get("DJANGO_DATABASE_NAME_MYSQL", "test_project"), "USER": os.environ.get("DJANGO_DATABASE_USER_MYSQL", getpass.getuser()), "PASSWORD": os.environ.get("DJANGO_DATABASE_PASSWORD_MYSQL", ""), },