Opened 17 years ago
Last modified 17 years ago
#4715 closed
syncdb attempt to create existing tables — at Version 1
Reported by: | anonymous | Owned by: | Jacob |
---|---|---|---|
Component: | Uncategorized | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
Hi, I`have a problem, I run manage.py syndb first time all go well, but if I run another time (changing a model or no) I obtain the error
Creating table django_admin_log Traceback (most recent call last): File "manage.py", line 11, in <module> execute_manager(settings) File "/usr/lib/python2.5/site-packages/django/core/management.py", line 1736, in execute_manager execute_from_command_line(action_mapping, argv) File "/usr/lib/python2.5/site-packages/django/core/management.py", line 1633, in execute_from_command_line action_mapping[action](int(options.verbosity), options.interactive) File "/usr/lib/python2.5/site-packages/django/core/management.py", line 572, in syncdb cursor.execute(statement) File "/usr/lib/python2.5/site-packages/django/db/backends/util.py", line 18, in execute return self.cursor.execute(sql, params) psycopg2.ProgrammingError: la relación «django_admin_log» ya existe
in english: the relation <<django_admin_log>> exists.
Sorry, but my english is very bad
Tanks
Luis
Note:
See TracTickets
for help on using tickets.
(Fixed description formatting)
I suspect you might be using some subversion code from a few days ago. This sounds like a problem we fixed earlier this week in the postgresql backend.
What code version are you using (if subversion trunk, please update to latest code and try again)? Which database backend?