Hi, This is a tricky situation, since no part of our upgrade process expects you to customize your database. The Notion docs should be avoided, as those are for the development of Review Board, and don't apply to a production install. In particular, you don't want to follow Getting Started (as that's only for a development install) or the Django Evolution docs (as that and the 'evolve' command are only for our own development of Review Board, and are dangerous to use in production).
A production install *must* use an official build of Review Board, installed via pip, with a Review Board site directory managed by the 'rb-site' tool. Similarly, all upgrades *must* go through 'rb-site upgrade', since that sets up some state required to carefully manage the upgrade process. Running 'evolve' manually, or making changes to tables, can corrupt state, and require a careful database repair by our team. If you have a site directory, and 'rb-site upgrade' ends up failing with errors, go ahead and show me the output. There should also be a log file that we can look at (though this may have confidential data in it). To resolve this, though, we'll probably need to get a support contract set up so we can work with you to initiate a database repair. This involves special tools and processes we have internally, and can take several hours or longer, depending on the changes made to the database and the discrepancies introduced to the evolution history. Making changes via SQL won't resolve the issue. I'd advise avoiding any further schema or other changes until we know more about what 'rb-site upgrade' does. Christian On Thu, Dec 14, 2023 at 11:00 AM Work Bot <xuhengduanw...@gmail.com> wrote: > > Some follow up questions/information: > When I execute ./reviewboard/manage.py evolve, I get following outputs in > my terminal: > The stored evolutions do not completely resolve all model changes. > > Run `./manage.py evolve --hint` to see a suggestion for the changes > required. > > > The following are the changes that could not be resolved: > > The application AAAA has been deleted > The application BBBB has been deleted > The application CCCC has been deleted > The application DDDD has been deleted > The application EEEE has been deleted > The application FFFF has been deleted > In model notifications.WebHookTarget: > In field 'url': > Property 'max_length' has changed > In model oauth.Application: > Field 'created' has been added > Field 'updated' has been added > Field 'algorithm' has been added > In field 'user': > Property 'null' has changed > In field 'id': > Property 'field_type' has changed > CommandError: Your models contain changes that Django Evolution cannot > resolve automatically. > > What does Django Evolution mean when it says, "The following are the > changes that could not be resolved"? Do I need to write/edit corresponding > revolution to delete those customized applications(AAAA, BBBB, etc) or > manually remove them from my Database through SQL? Similarly, when Django > Evolution says xxx has been added or changed, does it mean it can process > the evolution .py files, or it can't? > > Thanks for the helps! > > -- > 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/1ae682db-e194-4d2c-a3ab-ec911bdef42bn%40googlegroups.com > <https://groups.google.com/d/msgid/reviewboard/1ae682db-e194-4d2c-a3ab-ec911bdef42bn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Christian Hammond President/CEO of Beanbag <https://www.beanbaginc.com/> Makers of Review Board <https://www.reviewboard.org/> -- 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/CAE7Vnd%3D5uF2Bei-vFf8kLuh62m0Qb8tQUeNH1g%3DXV9y9MWJJbA%40mail.gmail.com.