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

Staging Down. #912

Closed
dauntlessnomad opened this issue Jul 8, 2022 · 0 comments
Closed

Staging Down. #912

dauntlessnomad opened this issue Jul 8, 2022 · 0 comments
Labels
API Backend blocked bug Something isn't working changes required P1 High priority; urgent Priority

Comments

@dauntlessnomad
Copy link
Member

WARNINGS:
users.User.asset: (fields.W342) Setting unique=True on a ForeignKey has the same effect as using a OneToOneField.
HINT: ForeignKey(unique=True) is usually better served by a OneToOneField.
Operations to perform:
Apply all migrations: account, admin, auth, authtoken, contenttypes, django_celery_beat, django_rest_passwordreset, facility, sessions, sites, socialaccount, users
Running migrations:
Traceback (most recent call last):
File "/app/manage.py", line 55, in
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.10/site-packages/django/core/management/init.py", line 381, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.10/site-packages/django/core/management/init.py", line 375, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.10/site-packages/django/core/management/base.py", line 323, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/local/lib/python3.10/site-packages/django/core/management/base.py", line 364, in execute
output = self.handle(*args, **options)
File "/usr/local/lib/python3.10/site-packages/django/core/management/base.py", line 83, in wrapped
res = handle_func(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/django/core/management/commands/migrate.py", line 232, in handle
post_migrate_state = executor.migrate(
File "/usr/local/lib/python3.10/site-packages/django/db/migrations/executor.py", line 117, in migrate
state = self._migrate_all_forwards(state, plan, full_plan, fake=fake, fake_initial=fake_initial)
File "/usr/local/lib/python3.10/site-packages/django/db/migrations/executor.py", line 147, in _migrate_all_forwards
state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial)
File "/usr/local/lib/python3.10/site-packages/django/db/migrations/executor.py", line 245, in apply_migration
state = migration.apply(state, schema_editor)
File "/usr/local/lib/python3.10/site-packages/django/db/migrations/migration.py", line 124, in apply
operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
File "/usr/local/lib/python3.10/site-packages/django/db/migrations/operations/special.py", line 190, in database_forwards
self.code(from_state.apps, schema_editor)
File "/app/care/facility/migrations/0297_facility_location.py", line 11, in populate_location
facility.longitude = facility.location.tuple[0]
AttributeError: 'str' object has no attribute 'tuple'. Did you mean: 'title'?

@mathew-alex mathew-alex added this to Care Jul 8, 2022
@mathew-alex mathew-alex moved this to Triage in Care Jul 8, 2022
Repository owner moved this from Triage to Done in Care Jul 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Backend blocked bug Something isn't working changes required P1 High priority; urgent Priority
Projects
Archived in project
Development

No branches or pull requests

2 participants