Ask Your Question
1

Do you create south migration files manually for User model change?

asked 2013-07-24 21:41:43 -0600

pcompassion gravatar image

Suppose you add column to User by User.add_to_class('some_field', field_type)

How do you create a migration for it?

Manually create a migration file and edit it to correctly change auth_user model?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-07-24 22:27:57 -0600

Evgeny gravatar image

We create them manually. What could help is to first create a migration for some other fully managed table and then edit the migration file and remove the dummy field from the models.

edit flag offensive delete link more

Comments

So, from this I understand that 'schemamigration askbot --auto' is not going to normally pick up a change made by adding a field with add_to_class() method?.

Andreu gravatar imageAndreu ( 2014-06-12 06:24:13 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2013-07-24 21:41:43 -0600

Seen: 258 times

Last updated: Jul 24 '13