Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ProgrammingError: column meinberlin_users_user.get_notifications does not exist #6108

Open
sentryliqd bot opened this issue Feb 19, 2025 · 5 comments
Open
Labels
Type: Bug incorrect or uexpected behaviour

Comments

@sentryliqd
Copy link

sentryliqd bot commented Feb 19, 2025

Sentry Issue: MEINBERLIN-DESIGN-DEV-3S

UndefinedColumn: column meinberlin_users_user.get_notifications does not exist
LINE 1: ...s_active", "meinberlin_users_user"."date_joined", "meinberli...
                                                             ^
  File "django/db/backends/utils.py", line 89, in _execute
    return self.cursor.execute(sql, params)
  File "psycopg/cursor.py", line 97, in execute
    raise ex.with_traceback(None)

ProgrammingError: column meinberlin_users_user.get_notifications does not exist
LINE 1: ...s_active", "meinberlin_users_user"."date_joined", "meinberli...
                                                             ^
(11 additional frame(s) were not displayed)
...
  File "meinberlin/apps/notifications/emails.py", line 91, in get_receivers
@goapunk
Copy link
Contributor

goapunk commented Feb 19, 2025

@vellip just happened on design-dev, I will look if the migrations failed, otherwise there might be something broken

@goapunk goapunk added the Type: Bug incorrect or uexpected behaviour label Feb 19, 2025
@vellip
Copy link
Collaborator

vellip commented Feb 19, 2025

I ended up with two initial migrations and then deleted one of them and regenerated migration for the other, if that helps

@goapunk
Copy link
Contributor

goapunk commented Feb 19, 2025

@vellip that shouldn't be an issue unless you deleted/changed an existing migration

@vellip
Copy link
Collaborator

vellip commented Feb 19, 2025

Ahh... I think I did. I changed apps/notifications/migrations/0002_add_notification_settings_per_user.py to apps/notifications/migrations/0003_add_notification_settings_per_user.py

@vellip
Copy link
Collaborator

vellip commented Feb 19, 2025

So a new number increment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug incorrect or uexpected behaviour
Projects
None yet
Development

No branches or pull requests

2 participants