Advertisement
Guest User

Untitled

a guest
Apr 7th, 2020
289
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 4.12 KB | None | 0 0
  1. cam@cam-XPS-13-9370:~/projects/buildingcontractorleads$ heroku run 'python3 manage.py migrate'  --app buildingcontractorleads
  2. Running python3 manage.py migrate on ⬢ buildingcontractorleads... up, run.7297 (Hobby)
  3. Operations to perform:
  4.   Apply all migrations: admin, auth, contenttypes, search, sessions, users
  5. Running migrations:
  6.   Applying search.0022_opportunity_negative_scope...Traceback (most recent call last):
  7.   File "/app/.heroku/python/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
  8.     return self.cursor.execute(sql, params)
  9. psycopg2.errors.DuplicateColumn: column "negative_scope" of relation "search_opportunity" already exists
  10.  
  11.  
  12. The above exception was the direct cause of the following exception:
  13.  
  14. Traceback (most recent call last):
  15.   File "manage.py", line 22, in <module>
  16.     main()
  17.   File "manage.py", line 18, in main
  18.     execute_from_command_line(sys.argv)
  19.   File "/app/.heroku/python/lib/python3.6/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
  20.     utility.execute()
  21.   File "/app/.heroku/python/lib/python3.6/site-packages/django/core/management/__init__.py", line 375, in execute
  22.     self.fetch_command(subcommand).run_from_argv(self.argv)
  23.   File "/app/.heroku/python/lib/python3.6/site-packages/django/core/management/base.py", line 323, in run_from_argv
  24.     self.execute(*args, **cmd_options)
  25.   File "/app/.heroku/python/lib/python3.6/site-packages/django/core/management/base.py", line 364, in execute
  26.     output = self.handle(*args, **options)
  27.   File "/app/.heroku/python/lib/python3.6/site-packages/django/core/management/base.py", line 83, in wrapped
  28.     res = handle_func(*args, **kwargs)
  29.   File "/app/.heroku/python/lib/python3.6/site-packages/django/core/management/commands/migrate.py", line 234, in handle
  30.     fake_initial=fake_initial,
  31.   File "/app/.heroku/python/lib/python3.6/site-packages/django/db/migrations/executor.py", line 117, in migrate
  32.     state = self._migrate_all_forwards(state, plan, full_plan, fake=fake, fake_initial=fake_initial)
  33.   File "/app/.heroku/python/lib/python3.6/site-packages/django/db/migrations/executor.py", line 147, in _migrate_all_forwards
  34.     state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial)
  35.   File "/app/.heroku/python/lib/python3.6/site-packages/django/db/migrations/executor.py", line 245, in apply_migration
  36.     state = migration.apply(state, schema_editor)
  37.   File "/app/.heroku/python/lib/python3.6/site-packages/django/db/migrations/migration.py", line 124, in apply
  38.     operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
  39.   File "/app/.heroku/python/lib/python3.6/site-packages/django/db/migrations/operations/fields.py", line 112, in database_forwards
  40.     field,
  41.   File "/app/.heroku/python/lib/python3.6/site-packages/django/db/backends/base/schema.py", line 447, in add_field
  42.     self.execute(sql, params)
  43.   File "/app/.heroku/python/lib/python3.6/site-packages/django/db/backends/base/schema.py", line 137, in execute
  44.     cursor.execute(sql, params)
  45.   File "/app/.heroku/python/lib/python3.6/site-packages/django/db/backends/utils.py", line 99, in execute
  46.     return super().execute(sql, params)
  47.   File "/app/.heroku/python/lib/python3.6/site-packages/django/db/backends/utils.py", line 67, in execute
  48.     return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  49.   File "/app/.heroku/python/lib/python3.6/site-packages/django/db/backends/utils.py", line 76, in _execute_with_wrappers
  50.     return executor(sql, params, many, context)
  51.   File "/app/.heroku/python/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
  52.     return self.cursor.execute(sql, params)
  53.   File "/app/.heroku/python/lib/python3.6/site-packages/django/db/utils.py", line 89, in __exit__
  54.     raise dj_exc_value.with_traceback(traceback) from exc_value
  55.   File "/app/.heroku/python/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
  56.     return self.cursor.execute(sql, params)
  57. django.db.utils.ProgrammingError: column "negative_scope" of relation "search_opportunity" already exists
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement