Skip to content

Commit

Permalink
Fixed issues with migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
HealperRasmus committed Aug 28, 2024
1 parent 5cee0b6 commit b8aa408
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
class Migration(migrations.Migration):

dependencies = [
('reversion', '0001_squashed_0004_auto_20160611_1202'),
('reversion', '0003_auto_20201027_1546'),
]

operations = [
Expand Down
13 changes: 9 additions & 4 deletions tests/test_project/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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", ""),
},
Expand Down

0 comments on commit b8aa408

Please sign in to comment.