Created
January 6, 2020 11:40
-
-
Save geeky-sh/73ec372681168c5dc3fdf525dc366879 to your computer and use it in GitHub Desktop.
Django Squash Migrations Error.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Applying investors.0001_squashed_0032_auto_20200103_0035...Traceback (most recent call last): | |
File "/Users/aash/projects/rpco-backoffice-api/backend/venv/bin/django-admin", line 8, in <module> | |
sys.exit(execute_from_command_line()) | |
File "/Users/aash/projects/rpco-backoffice-api/backend/venv/lib/python3.7/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line | |
utility.execute() | |
File "/Users/aash/projects/rpco-backoffice-api/backend/venv/lib/python3.7/site-packages/django/core/management/__init__.py", line 375, in execute | |
self.fetch_command(subcommand).run_from_argv(self.argv) | |
File "/Users/aash/projects/rpco-backoffice-api/backend/venv/lib/python3.7/site-packages/django/core/management/base.py", line 323, in run_from_argv | |
self.execute(*args, **cmd_options) | |
File "/Users/aash/projects/rpco-backoffice-api/backend/venv/lib/python3.7/site-packages/django/core/management/base.py", line 364, in execute | |
output = self.handle(*args, **options) | |
File "/Users/aash/projects/rpco-backoffice-api/backend/venv/lib/python3.7/site-packages/django/core/management/base.py", line 83, in wrapped | |
res = handle_func(*args, **kwargs) | |
File "/Users/aash/projects/rpco-backoffice-api/backend/venv/lib/python3.7/site-packages/django/core/management/commands/migrate.py", line 234, in handle | |
fake_initial=fake_initial, | |
File "/Users/aash/projects/rpco-backoffice-api/backend/venv/lib/python3.7/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 "/Users/aash/projects/rpco-backoffice-api/backend/venv/lib/python3.7/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 "/Users/aash/projects/rpco-backoffice-api/backend/venv/lib/python3.7/site-packages/django/db/migrations/executor.py", line 245, in apply_migration | |
state = migration.apply(state, schema_editor) | |
File "/Users/aash/projects/rpco-backoffice-api/backend/venv/lib/python3.7/site-packages/django/db/migrations/migration.py", line 124, in apply | |
operation.database_forwards(self.app_label, schema_editor, old_state, project_state) | |
File "/Users/aash/projects/rpco-backoffice-api/backend/venv/lib/python3.7/site-packages/django/db/migrations/operations/models.py", line 530, in database_forwards | |
getattr(new_model._meta, self.option_name, set()), | |
File "/Users/aash/projects/rpco-backoffice-api/backend/venv/lib/python3.7/site-packages/django/db/backends/base/schema.py", line 363, in alter_unique_together | |
self._delete_composed_index(model, fields, {'unique': True}, self.sql_delete_unique) | |
File "/Users/aash/projects/rpco-backoffice-api/backend/venv/lib/python3.7/site-packages/django/db/backends/base/schema.py", line 397, in _delete_composed_index | |
", ".join(columns), | |
ValueError: Found wrong number (0) of constraints for investors_companyverification(investor_id, status) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment