| 155 | |
| 156 | Tracebacks: |
| 157 | |
| 158 | {{{ |
| 159 | Applying myapp.0002_auto_20171011_0311...Traceback (most recent call last): |
| 160 | File "manage.py", line 10, in <module> |
| 161 | execute_from_command_line(sys.argv) |
| 162 | File "/home/esteban/PycharmProjects/venv35/lib64/python3.6/site-packages/django/core/management/__init__.py", line 354, in execute_from_command_line |
| 163 | utility.execute() |
| 164 | File "/home/esteban/PycharmProjects/venv35/lib64/python3.6/site-packages/django/core/management/__init__.py", line 346, in execute |
| 165 | self.fetch_command(subcommand).run_from_argv(self.argv) |
| 166 | File "/home/esteban/PycharmProjects/venv35/lib64/python3.6/site-packages/django/core/management/base.py", line 394, in run_from_argv |
| 167 | self.execute(*args, **cmd_options) |
| 168 | File "/home/esteban/PycharmProjects/venv35/lib64/python3.6/site-packages/django/core/management/base.py", line 445, in execute |
| 169 | output = self.handle(*args, **options) |
| 170 | File "/home/esteban/PycharmProjects/venv35/lib64/python3.6/site-packages/django/core/management/commands/migrate.py", line 222, in handle |
| 171 | executor.migrate(targets, plan, fake=fake, fake_initial=fake_initial) |
| 172 | File "/home/esteban/PycharmProjects/venv35/lib64/python3.6/site-packages/django/db/migrations/executor.py", line 110, in migrate |
| 173 | self.apply_migration(states[migration], migration, fake=fake, fake_initial=fake_initial) |
| 174 | File "/home/esteban/PycharmProjects/venv35/lib64/python3.6/site-packages/django/db/migrations/executor.py", line 148, in apply_migration |
| 175 | state = migration.apply(state, schema_editor) |
| 176 | File "/home/esteban/PycharmProjects/venv35/lib64/python3.6/site-packages/django/db/migrations/migration.py", line 115, in apply |
| 177 | operation.database_forwards(self.app_label, schema_editor, old_state, project_state) |
| 178 | File "/home/esteban/PycharmProjects/venv35/lib64/python3.6/site-packages/django/db/migrations/operations/models.py", line 359, in database_forwards |
| 179 | getattr(new_model._meta, self.option_name, set()), |
| 180 | File "/home/esteban/PycharmProjects/venv35/lib64/python3.6/site-packages/django/db/backends/base/schema.py", line 320, in alter_unique_together |
| 181 | self._delete_composed_index(model, fields, {'unique': True}, self.sql_delete_unique) |
| 182 | File "/home/esteban/PycharmProjects/venv35/lib64/python3.6/site-packages/django/db/backends/mysql/schema.py", line 80, in _delete_composed_index |
| 183 | return super(DatabaseSchemaEditor, self)._delete_composed_index(model, fields, *args) |
| 184 | File "/home/esteban/PycharmProjects/venv35/lib64/python3.6/site-packages/django/db/backends/base/schema.py", line 349, in _delete_composed_index |
| 185 | ", ".join(columns), |
| 186 | ValueError: Found wrong number (0) of constraints for myapp_topicpollvote(user_id, choice_id) |
| 187 | }}} |
| 188 | |
| 189 | The other one: |
| 190 | |
| 191 | {{{ |
| 192 | Applying myapp.0002_auto_20171011_0259...Traceback (most recent call last): |
| 193 | File "/home/esteban/PycharmProjects/venv35/lib64/python3.6/site-packages/django/db/backends/utils.py", line 64, in execute |
| 194 | return self.cursor.execute(sql, params) |
| 195 | File "/home/esteban/PycharmProjects/venv35/lib64/python3.6/site-packages/django/db/backends/mysql/base.py", line 124, in execute |
| 196 | return self.cursor.execute(query, args) |
| 197 | File "/home/esteban/PycharmProjects/venv35/lib64/python3.6/site-packages/MySQLdb/cursors.py", line 250, in execute |
| 198 | self.errorhandler(self, exc, value) |
| 199 | File "/home/esteban/PycharmProjects/venv35/lib64/python3.6/site-packages/MySQLdb/connections.py", line 50, in defaulterrorhandler |
| 200 | raise errorvalue |
| 201 | File "/home/esteban/PycharmProjects/venv35/lib64/python3.6/site-packages/MySQLdb/cursors.py", line 247, in execute |
| 202 | res = self._query(query) |
| 203 | File "/home/esteban/PycharmProjects/venv35/lib64/python3.6/site-packages/MySQLdb/cursors.py", line 411, in _query |
| 204 | rowcount = self._do_query(q) |
| 205 | File "/home/esteban/PycharmProjects/venv35/lib64/python3.6/site-packages/MySQLdb/cursors.py", line 374, in _do_query |
| 206 | db.query(q) |
| 207 | File "/home/esteban/PycharmProjects/venv35/lib64/python3.6/site-packages/MySQLdb/connections.py", line 277, in query |
| 208 | _mysql.connection.query(self, query) |
| 209 | _mysql_exceptions.OperationalError: (1553, "Cannot drop index 'myapp_topicpollch_poll_id_5bee0f72ec1f3a69_fk_myapp_topicpoll_id': needed in a foreign key constraint") |
| 210 | }}} |