Created
August 17, 2015 15:58
-
-
Save chasetb/b1b553aee819adc396cf to your computer and use it in GitHub Desktop.
Error running migration on Sal
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
/sal$ python manage.py migrate | |
Operations to perform: | |
Synchronize unmigrated apps: sal, staticfiles, admindocs, messages, api, bootstrap3 | |
Apply all migrations: sessions, admin, sites, auth, server, contenttypes | |
Synchronizing apps without migrations: | |
Creating tables... | |
Running deferred SQL... | |
Installing custom SQL... | |
Running migrations: | |
Rendering model states... DONE | |
Applying server.0011_auto_20150811_2243...Traceback (most recent call last): | |
File "manage.py", line 10, in <module> | |
execute_from_command_line(sys.argv) | |
File "/usr/local/sal_env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 338, in execute_from_command_line | |
utility.execute() | |
File "/usr/local/sal_env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 330, in execute | |
self.fetch_command(subcommand).run_from_argv(self.argv) | |
File "/usr/local/sal_env/local/lib/python2.7/site-packages/django/core/management/base.py", line 390, in run_from_argv | |
self.execute(*args, **cmd_options) | |
File "/usr/local/sal_env/local/lib/python2.7/site-packages/django/core/management/base.py", line 441, in execute | |
output = self.handle(*args, **options) | |
File "/usr/local/sal_env/local/lib/python2.7/site-packages/django/core/management/commands/migrate.py", line 221, in handle | |
executor.migrate(targets, plan, fake=fake, fake_initial=fake_initial) | |
File "/usr/local/sal_env/local/lib/python2.7/site-packages/django/db/migrations/executor.py", line 110, in migrate | |
self.apply_migration(states[migration], migration, fake=fake, fake_initial=fake_initial) | |
File "/usr/local/sal_env/local/lib/python2.7/site-packages/django/db/migrations/executor.py", line 147, in apply_migration | |
state = migration.apply(state, schema_editor) | |
File "/usr/local/sal_env/local/lib/python2.7/site-packages/django/db/migrations/migration.py", line 115, in apply | |
operation.database_forwards(self.app_label, schema_editor, old_state, project_state) | |
File "/usr/local/sal_env/local/lib/python2.7/site-packages/django/db/migrations/operations/fields.py", line 121, in database_forwards | |
schema_editor.remove_field(from_model, from_model._meta.get_field(self.name)) | |
File "/usr/local/sal_env/local/lib/python2.7/site-packages/django/db/backends/base/schema.py", line 440, in remove_field | |
self.execute(sql) | |
File "/usr/local/sal_env/local/lib/python2.7/site-packages/django/db/backends/base/schema.py", line 111, in execute | |
cursor.execute(sql, params) | |
File "/usr/local/sal_env/local/lib/python2.7/site-packages/django/db/backends/utils.py", line 64, in execute | |
return self.cursor.execute(sql, params) | |
File "/usr/local/sal_env/local/lib/python2.7/site-packages/django/db/utils.py", line 97, in __exit__ | |
six.reraise(dj_exc_type, dj_exc_value, traceback) | |
File "/usr/local/sal_env/local/lib/python2.7/site-packages/django/db/backends/utils.py", line 64, in execute | |
return self.cursor.execute(sql, params) | |
File "/usr/local/sal_env/local/lib/python2.7/site-packages/django/db/backends/mysql/base.py", line 124, in execute | |
return self.cursor.execute(query, args) | |
File "/usr/local/sal_env/local/lib/python2.7/site-packages/MySQLdb/cursors.py", line 205, in execute | |
self.errorhandler(self, exc, value) | |
File "/usr/local/sal_env/local/lib/python2.7/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler | |
raise errorclass, errorvalue | |
django.db.utils.OperationalError: (1091, "Can't DROP 'action'; check that column/key exists") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment