Switch "user_id" to "privilege" and "privilege_id" to "user".
authorChristopher Allan Webber <cwebber@dustycloud.org>
Tue, 10 Jun 2014 23:02:34 +0000 (18:02 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Tue, 10 Jun 2014 23:02:34 +0000 (18:02 -0500)
commitc56a88b43e168196c8c4b3778fccde2497d2e32b
tree9b61d1977a121b8fa7ac2d91bf69648f2f9d87ad
parent70bceff85fd678a7b6653b2bf377b075ebd11590
Switch "user_id" to "privilege" and "privilege_id" to "user".

This builds on the previous code Natalie wrote, but makes some changes:
 - More direct alterations for non-sqlite code
 - In both cases, I've made it so that we switched the field names from
   privilege_id and user_id to user and privilege respectively.  This
   way we can do the name swap, but in one case it's "easy": just
   changing the name.  (In the sqlite case it's still tricky though.)
mediagoblin/db/migrations.py
mediagoblin/db/models.py