On Mar 24, 1:23 pm, akaariai <[email protected]> wrote:
>
> Now, to fix this, first find out which sequence is used by
> er_utility's id column (\d er_utility will help here). Then issue:
>
> ALTER SEQUENCE seq_name OWNED BY er_utility, id;
>
> Now everything should work as expected.
I get
er-ca=# alter SEQUENCE er_utility_id_seq OWNED BY er_utility, id;
ERROR: syntax error at or near ","
LINE 1: alter SEQUENCE er_utility_id_seq OWNED BY er_utility, id;
^
However, I'm not sure if your answer is based on the expectation that
we've got a serial or bigserial id column. It's an integer - although
as a colleague noted, if django 1.3 had created this table, it would
have been a serial. I haven't found any upgrade notes that describe
integer id columns as a problem.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.