Advertisement
Guest User

Untitled

a guest
Jan 21st, 2014
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.87 KB | None | 0 0
  1. FATAL ERROR - The following SQL query failed: SELECT AddGeometryColumn('gis_geodata', 'data', 4326, 'GEOMETRY', 2);
  2. The error was: function addgeometrycolumn(unknown, unknown, integer, unknown, integer) is not unique
  3. LINE 1: SELECT AddGeometryColumn('gis_geodata', 'data', 4326, 'GEOME...
  4. ^
  5. HINT: Could not choose a best candidate function. You might need to add explicit type casts.
  6.  
  7. Error in migration: gis:0003_geodata
  8. Traceback (most recent call last):
  9. File "manage.py", line 44, in <module>
  10. execute_from_command_line(sys.argv)
  11. File "/opt/noc/lib/python2.7/site-packages/django/core/management/__init__.py", line 443, in execute_from_command_line
  12. utility.execute()
  13. File "/opt/noc/lib/python2.7/site-packages/django/core/management/__init__.py", line 382, in execute
  14. self.fetch_command(subcommand).run_from_argv(self.argv)
  15. File "/opt/noc/lib/python2.7/site-packages/django/core/management/base.py", line 196, in run_from_argv
  16. self.execute(*args, **options.__dict__)
  17. File "/opt/noc/lib/python2.7/site-packages/django/core/management/base.py", line 232, in execute
  18. output = self.handle(*args, **options)
  19. File "/opt/noc/lib/python2.7/site-packages/south/management/commands/migrate.py", line 108, in handle
  20. ignore_ghosts = ignore_ghosts,
  21. File "/opt/noc/lib/python2.7/site-packages/south/migration/__init__.py", line 213, in migrate_app
  22. success = migrator.migrate_many(target, workplan, database)
  23. File "/opt/noc/lib/python2.7/site-packages/south/migration/migrators.py", line 235, in migrate_many
  24. result = migrator.__class__.migrate_many(migrator, target, migrations, database)
  25. File "/opt/noc/lib/python2.7/site-packages/south/migration/migrators.py", line 310, in migrate_many
  26. result = self.migrate(migration, database)
  27. File "/opt/noc/lib/python2.7/site-packages/south/migration/migrators.py", line 133, in migrate
  28. result = self.run(migration)
  29. File "/opt/noc/lib/python2.7/site-packages/south/migration/migrators.py", line 107, in run
  30. return self.run_migration(migration)
  31. File "/opt/noc/lib/python2.7/site-packages/south/migration/migrators.py", line 82, in run_migration
  32. south.db.db.execute_deferred_sql()
  33. File "/opt/noc/lib/python2.7/site-packages/south/db/generic.py", line 309, in execute_deferred_sql
  34. self.execute(sql)
  35. File "/opt/noc/lib/python2.7/site-packages/south/db/generic.py", line 273, in execute
  36. cursor.execute(sql, params)
  37. File "/opt/noc/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/base.py", line 52, in execute
  38. return self.cursor.execute(query, args)
  39. django.db.utils.DatabaseError: function addgeometrycolumn(unknown, unknown, integer, unknown, integer) is not unique
  40. LINE 1: SELECT AddGeometryColumn('gis_geodata', 'data', 4326, 'GEOME...
  41. ^
  42. HINT: Could not choose a best candidate function. You might need to add explicit type casts.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement