Skip to content

Commit

Permalink
fix: disable migrations since we are not using it
Browse files Browse the repository at this point in the history
  • Loading branch information
lfjnascimento committed Jul 1, 2024
1 parent c86c665 commit 486e80a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions backend/kernelCI/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,3 +146,14 @@ def get_json_env_var(name, default):
# https://docs.djangoproject.com/en/5.0/ref/settings/#default-auto-field

DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"


class DisableMigrations:
def __contains__(self, item):
return True

def __getitem__(self, item):
return None


MIGRATION_MODULES = DisableMigrations()

0 comments on commit 486e80a

Please sign in to comment.