Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FATAL ERROR - The following SQL query failed: SELECT AddGeometryColumn('gis_geodata', 'data', 4326, 'GEOMETRY', 2);
- The error was: function addgeometrycolumn(unknown, unknown, integer, unknown, integer) is not unique
- LINE 1: SELECT AddGeometryColumn('gis_geodata', 'data', 4326, 'GEOME...
- ^
- HINT: Could not choose a best candidate function. You might need to add explicit type casts.
- Error in migration: gis:0003_geodata
- Traceback (most recent call last):
- File "manage.py", line 44, in <module>
- execute_from_command_line(sys.argv)
- File "/opt/noc/lib/python2.7/site-packages/django/core/management/__init__.py", line 443, in execute_from_command_line
- utility.execute()
- File "/opt/noc/lib/python2.7/site-packages/django/core/management/__init__.py", line 382, in execute
- self.fetch_command(subcommand).run_from_argv(self.argv)
- File "/opt/noc/lib/python2.7/site-packages/django/core/management/base.py", line 196, in run_from_argv
- self.execute(*args, **options.__dict__)
- File "/opt/noc/lib/python2.7/site-packages/django/core/management/base.py", line 232, in execute
- output = self.handle(*args, **options)
- File "/opt/noc/lib/python2.7/site-packages/south/management/commands/migrate.py", line 108, in handle
- ignore_ghosts = ignore_ghosts,
- File "/opt/noc/lib/python2.7/site-packages/south/migration/__init__.py", line 213, in migrate_app
- success = migrator.migrate_many(target, workplan, database)
- File "/opt/noc/lib/python2.7/site-packages/south/migration/migrators.py", line 235, in migrate_many
- result = migrator.__class__.migrate_many(migrator, target, migrations, database)
- File "/opt/noc/lib/python2.7/site-packages/south/migration/migrators.py", line 310, in migrate_many
- result = self.migrate(migration, database)
- File "/opt/noc/lib/python2.7/site-packages/south/migration/migrators.py", line 133, in migrate
- result = self.run(migration)
- File "/opt/noc/lib/python2.7/site-packages/south/migration/migrators.py", line 107, in run
- return self.run_migration(migration)
- File "/opt/noc/lib/python2.7/site-packages/south/migration/migrators.py", line 82, in run_migration
- south.db.db.execute_deferred_sql()
- File "/opt/noc/lib/python2.7/site-packages/south/db/generic.py", line 309, in execute_deferred_sql
- self.execute(sql)
- File "/opt/noc/lib/python2.7/site-packages/south/db/generic.py", line 273, in execute
- cursor.execute(sql, params)
- File "/opt/noc/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/base.py", line 52, in execute
- return self.cursor.execute(query, args)
- django.db.utils.DatabaseError: function addgeometrycolumn(unknown, unknown, integer, unknown, integer) is not unique
- LINE 1: SELECT AddGeometryColumn('gis_geodata', 'data', 4326, 'GEOME...
- ^
- 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