What steps will reproduce the problem?
I ran "svn update ." in the reviewboard install directory to get latest
version.
./manage.py syncdb
./manage.py evolve --hint --execute
What do you see instead?
# ./manage.py evolve --hint --execute
ChangeField does not support modifying the 'unique' attribute.
#
What operating system are you using? What browser?
RHEL5 Linux
Firefox browser
Please provide any additional information below.
For some reason my database needs to be updated, and when I use manage.py
to update it to latest schema I get error as shown above. If I run
manage.py evolve without the --execute, I can see what it is trying to
change (example below).
MUTATIONS = [
ChangeField('DiffSet', 'id', initial=None, unique=True),
ChangeField('DiffSetHistory', 'id', initial=None, unique=True),
AddField('FileDiff', 'parent_diff', models.Base64Field, initial='',
db_column='parent_diff_base64'),
AddField('FileDiff', 'diff', models.Base64Field, initial=<<USER VALUE
REQUIRED>>, db_column='diff_base64'),
DeleteField('FileDiff', 'diff_base64'),
ChangeField('FileDiff', 'id', initial=None, unique=True)
]
It fails when trying to change the unique attribute on the DiffSet field,
which means that new fields such as FileDiff are not added.
Do I need to destroy the database and create it again ? If so, how do I do
this ?