Skip to content

Instantly share code, notes, and snippets.

@JDHatman
Created October 26, 2015 15:32
Show Gist options
  • Save JDHatman/eee9ea1da4fc07fefbd5 to your computer and use it in GitHub Desktop.
Save JDHatman/eee9ea1da4fc07fefbd5 to your computer and use it in GitHub Desktop.
sal 2.2.3 syncdb
(sal_env)[saluser@HQPLNX17 sal]$ python manage.py syncdb
Operations to perform:
Synchronize unmigrated apps: sal, staticfiles, admindocs, messages, api, bootstrap3
Apply all migrations: watson, sessions, admin, sites, auth, server, contenttypes, inventory, licenses
Synchronizing apps without migrations:
Creating tables...
Running deferred SQL...
Installing custom SQL...
Running migrations:
Rendering model states... DONE
Applying contenttypes.0001_initial... OK
Applying auth.0001_initial... OK
Applying admin.0001_initial... OK
Applying contenttypes.0002_remove_content_type_name... OK
Applying auth.0002_alter_permission_name_max_length... OK
Applying auth.0003_alter_user_email_max_length... OK
Applying auth.0004_alter_user_username_opts... OK
Applying auth.0005_alter_user_last_login_null... OK
Applying auth.0006_require_contenttypes_0002... OK
Applying server.0001_initial... OK
Applying server.0002_plugin... OK
Applying server.0003_auto_20150612_1123... OK
Applying server.0004_auto_20150623_1623... OK
Applying server.0005_auto_20150717_1827... OK
Applying server.0006_auto_20150811_0811... OK
Applying server.0007_auto_20150811_0813... OK
Applying server.0008_auto_20150811_1001... OK
Applying server.0009_auto_20150811_1734... OK
Applying server.0010_auto_20150811_2209... OK
Applying server.0011_auto_20150811_2243... OK
Applying server.0012_auto_20150814_1913... OK
Applying server.0013_auto_20150816_1652... OK
Applying server.0014_auto_20150817_1646... OK
Applying inventory.0001_initial... OK
Applying inventory.0002_auto_20151026_0845...Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/usr/local/sal_env/lib/python2.7/site-packages/django/core/management/__init__.py", line 351, in execute_from_command_line
utility.execute()
File "/usr/local/sal_env/lib/python2.7/site-packages/django/core/management/__init__.py", line 343, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/sal_env/lib/python2.7/site-packages/django/core/management/base.py", line 394, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/local/sal_env/lib/python2.7/site-packages/django/core/management/base.py", line 445, in execute
output = self.handle(*args, **options)
File "/usr/local/sal_env/lib/python2.7/site-packages/django/core/management/commands/syncdb.py", line 25, in handle
call_command("migrate", **options)
File "/usr/local/sal_env/lib/python2.7/site-packages/django/core/management/__init__.py", line 120, in call_command
return command.execute(*args, **defaults)
File "/usr/local/sal_env/lib/python2.7/site-packages/django/core/management/base.py", line 445, in execute
output = self.handle(*args, **options)
File "/usr/local/sal_env/lib/python2.7/site-packages/django/core/management/commands/migrate.py", line 222, in handle
executor.migrate(targets, plan, fake=fake, fake_initial=fake_initial)
File "/usr/local/sal_env/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/lib/python2.7/site-packages/django/db/migrations/executor.py", line 148, in apply_migration
state = migration.apply(state, schema_editor)
File "/usr/local/sal_env/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/lib/python2.7/site-packages/django/db/migrations/operations/fields.py", line 201, in database_forwards
schema_editor.alter_field(from_model, from_field, to_field)
File "/usr/local/sal_env/lib/python2.7/site-packages/django/db/backends/base/schema.py", line 484, in alter_field
old_db_params, new_db_params, strict)
File "/usr/local/sal_env/lib/python2.7/site-packages/django/db/backends/base/schema.py", line 670, in _alter_field
self.execute(self._create_index_sql(model, [new_field], suffix="_uniq"))
File "/usr/local/sal_env/lib/python2.7/site-packages/django/db/backends/base/schema.py", line 111, in execute
cursor.execute(sql, params)
File "/usr/local/sal_env/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/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/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/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/lib/python2.7/site-packages/MySQLdb/cursors.py", line 205, in execute
self.errorhandler(self, exc, value)
File "/usr/local/sal_env/lib/python2.7/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
raise errorclass, errorvalue
django.db.utils.OperationalError: (1170, "BLOB/TEXT column 'path' used in key specification without a key length")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment