4056: rb-site upgrade error: Your models contain changes that Django Evolution cannot resolve automatically

Jasper

What version are you running?

1.7.1

What's the URL of the page containing the problem?

(it is internal)

What steps will reproduce the problem?

  1. on Linux (CentOS) reviewboard 1.7 -> 2.0.16 ( intended to upgrade to latest but ran into some problem, thought I would do it with a smaller increment )
  2. easy_install ReviewBoard==2.0.16 (successful)
  3. rb-site upgrade [path]

What is the expected output? What do you see instead?

database ok successful expected

actual result:
In model reviews.ReviewRequest:
Field 'related_review_number' has been deleted
In model reviews.Review
Field 'notify_only_submitter' has been deleted
In model reviews.ReviewRequestDraft
Field 'related_review_number' has been deleted
In model accounts.Profile
Field 'eclipse_diff_view' has been deleted

What operating system are you using? What browser?

CentOS

Please provide any additional information below.

Have also post on forum
https://groups.google.com/forum/?fromgroups=#!topic/reviewboard/VdCfTpbBVK4
I have come across a few posts about similar issues, some of them is fixed by reviewboard as i think Christian mentions that reviewboard owns the schema and should be be changed manually .

[root@localhost /]# rb-site manage /var/www/reviewboard evolve -- --hint
ERROR:root:Error loading extension DevCenterUpdater: No module named defaults
#----- Evolution for auth
from django_evolution.mutations import ChangeMeta
MUTATIONS = [
    ChangeMeta('Permission', 'unique_together', ((u'content_type', u'codename'),))
]
#----------------------
#----- Evolution for contenttypes
from django_evolution.mutations import ChangeMeta
MUTATIONS = [
    ChangeMeta('ContentType', 'unique_together', (('app_label', 'model'),))
]
#----------------------
#----- Evolution for accounts
from django_evolution.mutations import AddField, ChangeField, ChangeMeta, DeleteField
from django.db import models
from djblets.db.fields import JSONField
MUTATIONS = [
    AddField('Profile', 'default_use_rich_text', models.NullBooleanField, null=True),
    AddField('Profile', 'should_send_email', models.BooleanField, initial=True),
    AddField('Profile', 'extra_data', JSONField, nu
#1 Jasper

from django_evolution.models import Version
for version in Version.objects.all() : print version
...
Stored version, updated on 2012-12-18 02:02:09+00:00
Stored version, updated on 2012-11-09 21:44:36+00:00
Hinted version, updated on 2012-11-09 21:44:31+00:00
Stored version, updated on 2012-08-02 12:59:14+00:00
Hinted version, updated on 2012-08-02 12:59:12+00:00
Stored version, updated on 2012-01-24 16:02:57+00:00

#2 Jasper

schema file

  • +
    -- MySQL dump 10.13  Distrib 5.1.61, for redhat-linux-gnu (i386)
    --
    -- Host: localhost    Database: reviewboard
    -- ------------------------------------------------------
    -- Server version	5.1.61
    /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
    /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
    /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
    /*!40101 SET NAMES utf8 */;
    /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
    /*!40103 SET TIME_ZONE='+00:00' */;
    /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
    /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
    /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
    /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
    --
    -- Table structure for table `accounts_localsiteprofile`
    --
    DROP TABLE IF EXISTS `accounts_localsiteprofile`;
    /*!40101 SET @saved_cs_client     = @@character_set_client */;
    /*!40101 SET character_set_clien
david
#3 david

This was addressed on the mailing list.

  • -New
    +SetupIssue