Skip to content
This repository has been archived by the owner on Jan 11, 2019. It is now read-only.

error during migration #70

Open
corpulent opened this issue Jul 24, 2014 · 0 comments
Open

error during migration #70

corpulent opened this issue Jul 24, 2014 · 0 comments

Comments

@corpulent
Copy link

Hi guys, I keep getting this error when I try to migrate... I tried the master branch also, same thing.

Running migrations for aldryn_blog:
 - Migrating forwards to 0014_initial.
 > filer:0001_initial
 > taggit:0001_initial
 > aldryn_blog:0001_initial
 > aldryn_blog:0002_auto__add_field_post_key_visual__add_field_post_lead_in
 > aldryn_blog:0003_auto__add_field_post_language
 > aldryn_blog:0004_date_to_datetime_step1
 > aldryn_blog:0005_date_to_datetime_step2
 > aldryn_blog:0006_date_to_datetime_step3
 > aldryn_blog:0007_normalize_plugin_language
 > aldryn_blog:0008_auto__add_authorentriesplugin
 > aldryn_blog:0009_auto__del_field_authorentriesplugin_author
 > aldryn_blog:0010_auto__del_field_authorentriesplugin_latest_entries
 > aldryn_blog:0011_rename__authorentriesplugin__to__authorsplugin
 > aldryn_blog:0012_rename__authorentriesplugin__to__authorsplugin
 > aldryn_blog:0013_auto__add_category__add_categorytranslation__add_unique_categorytransl
 > aldryn_blog:0013_auto__add_m2m_coauthor
 > aldryn_blog:0014_initial
FATAL ERROR - The following SQL query failed: CREATE TABLE "aldryn_blog_category_translation" ("id" serial NOT NULL PRIMARY KEY, "name" varchar(255) NOT NULL, "slug" varchar(255) NOT NULL, "language_code" varchar(15) NOT NULL, "master_id" integer NULL)
The error was: relation "aldryn_blog_category_translation" already exists

Error in migration: aldryn_blog:0014_initial
Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/var/outermeasure/app/env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 399, in execute_from_command_line
    utility.execute()
  File "/var/outermeasure/app/env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 392, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/var/outermeasure/app/env/local/lib/python2.7/site-packages/django/core/management/base.py", line 242, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/var/outermeasure/app/env/local/lib/python2.7/site-packages/django/core/management/base.py", line 285, in execute
    output = self.handle(*args, **options)
  File "/var/outermeasure/app/env/local/lib/python2.7/site-packages/south/management/commands/migrate.py", line 111, in handle
    ignore_ghosts = ignore_ghosts,
  File "/var/outermeasure/app/env/local/lib/python2.7/site-packages/south/migration/__init__.py", line 220, in migrate_app
    success = migrator.migrate_many(target, workplan, database)
  File "/var/outermeasure/app/env/local/lib/python2.7/site-packages/south/migration/migrators.py", line 256, in migrate_many
    result = migrator.__class__.migrate_many(migrator, target, migrations, database)
  File "/var/outermeasure/app/env/local/lib/python2.7/site-packages/south/migration/migrators.py", line 331, in migrate_many
    result = self.migrate(migration, database)
  File "/var/outermeasure/app/env/local/lib/python2.7/site-packages/south/migration/migrators.py", line 133, in migrate
    result = self.run(migration, database)
  File "/var/outermeasure/app/env/local/lib/python2.7/site-packages/south/migration/migrators.py", line 114, in run
    return self.run_migration(migration, database)
  File "/var/outermeasure/app/env/local/lib/python2.7/site-packages/south/migration/migrators.py", line 84, in run_migration
    migration_function()
  File "/var/outermeasure/app/env/local/lib/python2.7/site-packages/south/migration/migrators.py", line 60, in <lambda>
    return (lambda: direction(orm))
  File "/var/outermeasure/app/env/local/lib/python2.7/site-packages/aldryn_blog/migrations/0014_initial.py", line 17, in forwards
    ('master', self.gf('django.db.models.fields.related.ForeignKey')(related_name='translations', null=True, to=orm['aldryn_blog.Category'])),
  File "/var/outermeasure/app/env/local/lib/python2.7/site-packages/south/db/generic.py", line 47, in _cache_clear
    return func(self, table, *args, **opts)
  File "/var/outermeasure/app/env/local/lib/python2.7/site-packages/south/db/generic.py", line 361, in create_table
    "columns": ', '.join([col for col in columns if col]),
  File "/var/outermeasure/app/env/local/lib/python2.7/site-packages/south/db/generic.py", line 282, in execute
    cursor.execute(sql, params)
  File "/var/outermeasure/app/env/local/lib/python2.7/site-packages/django/db/backends/util.py", line 69, in execute
    return super(CursorDebugWrapper, self).execute(sql, params)
  File "/var/outermeasure/app/env/local/lib/python2.7/site-packages/django/db/backends/util.py", line 53, in execute
    return self.cursor.execute(sql, params)
  File "/var/outermeasure/app/env/local/lib/python2.7/site-packages/django/db/utils.py", line 99, in __exit__
    six.reraise(dj_exc_type, dj_exc_value, traceback)
  File "/var/outermeasure/app/env/local/lib/python2.7/site-packages/django/db/backends/util.py", line 53, in execute
    return self.cursor.execute(sql, params)
django.db.utils.ProgrammingError: relation "aldryn_blog_category_translation" already exists
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant