Revision history [back]
migrate error while upgrading askbot
FATAL ERROR - The following SQL query failed: CREATE TABLE "robots_url" ("id" serial NOT NULL PRIMARY KEY, "pattern" varchar(255) NOT NULL); The error was: relation "robots_url" already exists
Error in migration: robots:0001_initial Traceback (most recent call last): File "manage.py", line 11, in execute_manager(settings) File "/home/jqy/lib/python2.7/Django-1.4.3-py2.7.egg/django/core/management/__init__.py", line 438, in execute_manager utility.execute() File "/home/jqy/lib/python2.7/Django-1.4.3-py2.7.egg/django/core/management/__init__.py", line 379, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/home/jqy/lib/python2.7/Django-1.4.3-py2.7.egg/django/core/management/base.py", line 191, in run_from_argv self.execute(args, *options.__dict__) File "/home/jqy/lib/python2.7/Django-1.4.3-py2.7.egg/django/core/management/base.py", line 220, in execute output = self.handle(args, *options) File "/home/jqy/lib/python2.7/South-0.7.6-py2.7.egg/south/management/commands/migrate.py", line 108, in handle ignore_ghosts = ignore_ghosts, File "/home/jqy/lib/python2.7/South-0.7.6-py2.7.egg/south/migration/__init__.py", line 213, in migrate_app success = migrator.migrate_many(target, workplan, database) File "/home/jqy/lib/python2.7/South-0.7.6-py2.7.egg/south/migration/migrators.py", line 235, in migrate_many result = migrator.__class__.migrate_many(migrator, target, migrations, database) File "/home/jqy/lib/python2.7/South-0.7.6-py2.7.egg/south/migration/migrators.py", line 310, in migrate_many result = self.migrate(migration, database) File "/home/jqy/lib/python2.7/South-0.7.6-py2.7.egg/south/migration/migrators.py", line 133, in migrate result = self.run(migration) File "/home/jqy/lib/python2.7/South-0.7.6-py2.7.egg/south/migration/migrators.py", line 107, in run return self.run_migration(migration) File "/home/jqy/lib/python2.7/South-0.7.6-py2.7.egg/south/migration/migrators.py", line 81, in run_migration migration_function() File "/home/jqy/lib/python2.7/South-0.7.6-py2.7.egg/south/migration/migrators.py", line 57, in return (lambda: direction(orm)) File "/home/jqy/lib/python2.7/django_robots-0.9.1-py2.7.egg/robots/migrations/0001_initial.py", line 13, in forwards ('pattern', self.gf('django.db.models.fields.CharField')(max_length=255)), File "/home/jqy/lib/python2.7/South-0.7.6-py2.7.egg/south/db/generic.py", line 44, in _cache_clear return func(self, table, args, *opts) File "/home/jqy/lib/python2.7/South-0.7.6-py2.7.egg/south/db/generic.py", line 352, in create_table ', '.join([col for col in columns if col]), File "/home/jqy/lib/python2.7/South-0.7.6-py2.7.egg/south/db/generic.py", line 273, in execute cursor.execute(sql, params) File "/home/jqy/lib/python2.7/Django-1.4.3-py2.7.egg/django/db/backends/util.py", line 34, in execute return self.cursor.execute(sql, params) File "/home/jqy/lib/python2.7/Django-1.4.3-py2.7.egg/django/db/backends/postgresql_psycopg2/base.py", line 44, in execute return self.cursor.execute(query, args) django.db.utils.DatabaseError: relation "robots_url" already exists
so how to solve this ?