Skip to content

Commit

Permalink
refactor: Remove unused code
Browse files Browse the repository at this point in the history
This won't be needed as we can't create a non-null default column in Django 4, so there's no point in disabling the warning if it won't work at all.
  • Loading branch information
rafaeelaudibert committed Jan 8, 2025
1 parent 2c47c22 commit eebd6c5
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions posthog/settings/data_stores.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,6 @@ def postgres_config(host: str) -> dict:
}


# Skip the check for non-nullable fields with default because we're on PG11+
# and Postgres can easily add new non-nullable columns with a default value.
SILENCED_SYSTEM_CHECKS = [
"migrations.W004" # Silence the non-null field warning
]


if TEST or DEBUG:
PG_HOST: str = os.getenv("PGHOST", "localhost")
PG_USER: str = os.getenv("PGUSER", "posthog")
Expand Down

0 comments on commit eebd6c5

Please sign in to comment.