Hi Reviewboard community,
I am currently trying to update my Reviewboard 3 to Reviewboard 5. Everything went well until I touched data migration part. I went through Reviewboard official Getting Started page as well as Django Evolution documentations, and none of them helped in my situation.
Here is the background information about my project:
- I have customized data schemas and modified some exisiting table from RB3 original databases
- I used ./reviewboard/manage.py evolve --hint to initilize the Database upgrade process, and I received following error:
CommandError: Cannot use hinted evolution: AddField or ChangeField mutation for "AccessToken.created" in "oauth2_provider" requires user-specified initial value.
- After some searches, I located down to this file: reviewboard/admin/custom_evolutions/oauth2_provider/upgrade_to_1_6_3.py, around line 56. The code there states:
AddField('AccessToken', 'created', models.DateTimeField, initial=timezone.now),
- Thus, I modified initial value in the above code and run ./reviewboard/manage.py evolve --hint again, but nothing changed, and received same error code.
My understanding is that Reviewboard is asking Django Evo to use upgrade_to_1_6_3.py to apply some changes on SQL database. Thus, I feel weird when the same error code exists after I made changes to this file (I even commented almost the entire upgrade_to_1_6_3.py file away)
I genuinely thanks any insights on this issue.
Sincerely.