Задать вопрос

Тел: +7 965 3737 888

516

Просмотров

3

Ответов

update primary key (and cascade to child tables)

Management command to update a primary key and update all child-tables with a foreign key to this table.

Вопрос полезен? Да0/Нет0
file_4946.py(3.7Кб)
None

Ответы (3):

Ответjbdi:14.01.2014
Ответ полезен? Да0/Нет0

I take my words back. Very useful script. Thanks

Ответjbdi:14.01.2014
Ответ полезен? Да0/Нет0

Nothing happens in the postgres tables. I run script, he says that made update but postges give me not updated data.

Ответlylepratt:04.07.2012
Ответ полезен? Да0/Нет0

What database type was this written for? MySQL? Postgres? SQLite?

I'm having trouble testing it on an SQLite DB, but will need to eventually use it on a MySQL DB.

Thanks for creating this!