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 have my environment setup ready for Reviewboard 5 based on the 
instuctions from [Getting Started (notion.site) 
<https://reviewboard.notion.site/Getting-Started-da208d46de1d47d8b38e8b5ddcb3dd44#9011af3c5354414c88c02cd8b9f162c0>
]

- 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. 



-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/1a66509a-4325-4bf0-9a0c-2859fd7164a9n%40googlegroups.com.

Reply via email to