On Monday 06 March 2017 15:40:55 Maksym Mospanenko wrote:
> Hello! I want to migrate data with schema migrations but I can't 
run
> any python code on database server - only raw sql (postgres).
> How can I move fk column data to m2m table's fk column?

On the server you can run python code:
python manage.py sqlmigrate app_label migration_name |psql 
dbname

Or save the output, put it on db server and load it there.
I don't see why though. Just run migrate on the server that runs 
django.
-- 
Melvyn Sopacua

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/2342000.7dx7c2oO53%40devstation.
For more options, visit https://groups.google.com/d/optout.

Reply via email to