On Dec 8, 4:24 pm, "youngblood.carl" <youngblood.c...@gmail.com>
wrote:
One big question -- where can we see the code? At the moment, all
you've said is that you've built something. We can't really comment on
the design decisions of something we haven't seen :-)
Yours,
Russ Magee %-)
I don't have the capabilities to test oracle backends, so I'd welcome
feedback from anyone else on the list on how this works.
Andrew
> One thing that might be helpful is the actual migration module. The
> error seems straightforward enough, it seems like somehow we've gotten
> into a situation where you're trying to create an index on a column
> that already has an index. Does it seem like your migrations from 0001
> to 0017 have multiple create_index statements for the same column?
I would hope not :) The same migrations are used for mysql migration, and I suspect that would fail there as well.
It is, however possible, that the person who ran the oracle migrations didn't back up from a failed migration previously.
> If
> so, is that valid?
I would think it's not valid, but would defer that to others.
jan
> Maybe South expects the adapter to be smart enough
> to NO-OP if there is already an index? If that is the problem it seems
> quite feasible to implement.
>
> On Dec 20, 5:04 pm, Jan Vilhuber <jan.vilhu...@gmail.com> wrote:
>> On Dec 8, 3:24 pm, "youngblood.carl" <youngblood.c...@gmail.com>
>> wrote:
>>
>>> I've put together a new oracle adapter. I didn't really agree with the
>>> philosophy of the existing one with all the regex work to try and fix
>>> sql coming from generic, so this is more of a ground up approach. The
>>> contributions section says we should talk about it before attaching it
>>> to a ticket, so any questions? =)
>>
>> Hi Carl, trying to use your code, and the first migration we tried
>> hits this:
>>
>> "myapp:0017_whatever_whatever_whatever".
>> django.db.utils.DatabaseError: ORA-01408: such column list already
>> indexed
>>
>> What details can I gather for you?
>> jan
>
> --
> You received this message because you are subscribed to the Google Groups "South Users" group.
> To post to this group, send email to south...@googlegroups.com.
> To unsubscribe from this group, send email to south-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/south-users?hl=en.
>
>> It is, however possible, that the person who ran the oracle migrations didn't back up from a failed migration previously.
>
> I don't want to assume this is true, but it sure would make it easier
> to explain.
We can try running again in a more controlled setting..
> If I'm lucky I'll hit the same problem myself soon.
> Another thing that might be useful is generally what the 0017
> migration is about. Is it adding columns? Altering columns? Explicitly
> adding indexes? Does it maybe add a constraint and then immediately
> add an index?
>
Hi Carl,
without going into details (excuse my paranoia...) it does roughly this: Created a bunch of new tables, 2 m2m tables and adds columns to an existing table.
db.create_table()
db.send_create_signal()
x7
# Adding M2M table for ...
db.create_table()
db.create_unique()
db.create_table()
db.send_create_signal()
x5
# Adding M2M table for ...
db.create_table()
db.create_unique()
db.create_table()
db.send_create_signal()
x5
db.add_column(in some old table)
db.add_column(in the same old table)
When I have more time, I'll try running the migrations myself to get firsthand experience.
Thanks!
jan