Created
November 27, 2012 10:46
-
-
Save yomguy/4153582 to your computer and use it in GitHub Desktop.
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
/usr/local/lib/python2.6/dist-packages/django/conf/__init__.py:75: DeprecationWarning: The ADMIN_MEDIA_PREFIX setting has been removed; use STATIC_URL instead. | |
"use STATIC_URL instead.", DeprecationWarning) | |
/usr/local/lib/python2.6/dist-packages/django/views/generic/simple.py:8: DeprecationWarning: Function-based generic views have been deprecated; use class-based views instead. | |
DeprecationWarning | |
+ Added field keywords_string on teleforma.Seminar | |
? The field 'Seminar.site' does not have a default specified, yet is NOT NULL. | |
? Since you are adding this field, you MUST specify a default | |
? value to use for existing rows. Would you like to: | |
? 1. Quit now, and add a default to the field in models.py | |
? 2. Specify a one-off value to use for existing columns now | |
? Please select a choice: 2 | |
? Please enter Python code for your one-off default value. | |
? The datetime module is available, so you can do e.g. datetime.date.today() | |
>>> 1 | |
+ Added field site on teleforma.Seminar | |
+ Added field slug on teleforma.Seminar | |
+ Added field _meta_title on teleforma.Seminar | |
+ Added field gen_description on teleforma.Seminar | |
+ Added field publish_date on teleforma.Seminar | |
+ Added field expiry_date on teleforma.Seminar | |
+ Added field short_url on teleforma.Seminar | |
~ Changed field title on teleforma.Seminar | |
~ Changed field keywords on teleforma.Seminar | |
Created 0070_auto__add_field_seminar_keywords_string__add_field_seminar_site__add_f.py. You can now apply this migration with: ./manage.py migrate teleforma | |
/usr/local/lib/python2.6/dist-packages/django/conf/__init__.py:75: DeprecationWarning: The ADMIN_MEDIA_PREFIX setting has been removed; use STATIC_URL instead. | |
"use STATIC_URL instead.", DeprecationWarning) | |
/usr/local/lib/python2.6/dist-packages/django/views/generic/simple.py:8: DeprecationWarning: Function-based generic views have been deprecated; use class-based views instead. | |
DeprecationWarning | |
Nothing seems to have changed. | |
/usr/local/lib/python2.6/dist-packages/django/conf/__init__.py:75: DeprecationWarning: The ADMIN_MEDIA_PREFIX setting has been removed; use STATIC_URL instead. | |
"use STATIC_URL instead.", DeprecationWarning) | |
/usr/local/lib/python2.6/dist-packages/django/views/generic/simple.py:8: DeprecationWarning: Function-based generic views have been deprecated; use class-based views instead. | |
DeprecationWarning | |
Running migrations for telemeta: | |
- Nothing to migrate. | |
- Loading initial data for telemeta. | |
Installed 0 object(s) from 0 fixture(s) | |
Running migrations for teleforma: | |
- Migrating forwards to 0070_auto__add_field_seminar_keywords_string__add_field_seminar_site__add_f. | |
> teleforma:0070_auto__add_field_seminar_keywords_string__add_field_seminar_site__add_f | |
! Error found during real run of migration! Aborting. | |
! Since you have a database that does not support running | |
! schema-altering statements in transactions, we have had | |
! to leave it in an interim state between migrations. | |
! You *might* be able to recover with: = ALTER TABLE "teleforma_seminar" DROP COLUMN "keywords_string" CASCADE; [] | |
= ALTER TABLE "teleforma_seminar" DROP COLUMN "site_id" CASCADE; [] | |
= ALTER TABLE "teleforma_seminar" DROP COLUMN "slug" CASCADE; [] | |
= ALTER TABLE "teleforma_seminar" DROP COLUMN "_meta_title" CASCADE; [] | |
= ALTER TABLE "teleforma_seminar" DROP COLUMN "gen_description" CASCADE; [] | |
= ALTER TABLE "teleforma_seminar" DROP COLUMN "publish_date" CASCADE; [] | |
= ALTER TABLE "teleforma_seminar" DROP COLUMN "expiry_date" CASCADE; [] | |
= ALTER TABLE "teleforma_seminar" DROP COLUMN "short_url" CASCADE; [] | |
- no dry run output for alter_column() due to dynamic DDL, sorry | |
- no dry run output for alter_column() due to dynamic DDL, sorry | |
! The South developers regret this has happened, and would | |
! like to gently persuade you to consider a slightly | |
! easier-to-deal-with DBMS (one that supports DDL transactions) | |
! NOTE: The error which caused the migration to fail is further up. | |
Error in migration: teleforma:0070_auto__add_field_seminar_keywords_string__add_field_seminar_site__add_f | |
Traceback (most recent call last): | |
File "./manage.py", line 9, in <module> | |
execute_from_command_line(sys.argv) | |
File "/usr/local/lib/python2.6/dist-packages/django/core/management/__init__.py", line 443, in execute_from_command_line | |
utility.execute() | |
File "/usr/local/lib/python2.6/dist-packages/django/core/management/__init__.py", line 382, in execute | |
self.fetch_command(subcommand).run_from_argv(self.argv) | |
File "/usr/local/lib/python2.6/dist-packages/django/core/management/base.py", line 196, in run_from_argv | |
self.execute(*args, **options.__dict__) | |
File "/usr/local/lib/python2.6/dist-packages/django/core/management/base.py", line 232, in execute | |
output = self.handle(*args, **options) | |
File "/usr/local/lib/python2.6/dist-packages/south/management/commands/migrate.py", line 107, in handle | |
ignore_ghosts = ignore_ghosts, | |
File "/usr/local/lib/python2.6/dist-packages/south/migration/__init__.py", line 219, in migrate_app | |
success = migrator.migrate_many(target, workplan, database) | |
File "/usr/local/lib/python2.6/dist-packages/south/migration/migrators.py", line 235, in migrate_many | |
result = migrator.__class__.migrate_many(migrator, target, migrations, database) | |
File "/usr/local/lib/python2.6/dist-packages/south/migration/migrators.py", line 310, in migrate_many | |
result = self.migrate(migration, database) | |
File "/usr/local/lib/python2.6/dist-packages/south/migration/migrators.py", line 133, in migrate | |
result = self.run(migration) | |
File "/usr/local/lib/python2.6/dist-packages/south/migration/migrators.py", line 107, in run | |
return self.run_migration(migration) | |
File "/usr/local/lib/python2.6/dist-packages/south/migration/migrators.py", line 81, in run_migration | |
migration_function() | |
File "/usr/local/lib/python2.6/dist-packages/south/migration/migrators.py", line 57, in <lambda> | |
return (lambda: direction(orm)) | |
File "/home/dev/teleforma/sandbox/teleforma/migrations/0070_auto__add_field_seminar_keywords_string__add_field_seminar_site__add_f.py", line 56, in forwards | |
db.alter_column('teleforma_seminar', 'keywords', self.gf('mezzanine.generic.fields.KeywordsField')(object_id_field='object_pk', to=orm['generic.AssignedKeyword'], frozen_by_south=True)) | |
File "/usr/local/lib/python2.6/dist-packages/south/db/generic.py", line 46, in _cache_clear | |
return func(self, table, *args, **opts) | |
File "/usr/local/lib/python2.6/dist-packages/south/db/generic.py", line 544, in alter_column | |
field.rel.to._meta.get_field(field.rel.field_name).column | |
AttributeError: 'GenericRel' object has no attribute 'field_name' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment