fixed bug preventing migration of existing django-cms 2.1 applications #968

Closed
wants to merge 1 commit into
from

3 participants

@ajmirsky

when migrating an existing django-cms 2.1 based application, the meta information for the db_table is already set as cmsplugin_mymodel so altering the plugin's table name is not necessary. bypass the rewrite of the default table name when the meta information is already correct

@ajmirsky ajmirsky when migrating an existing django-cms 2.1 based application, the meta…
… information for the db_table is already set as cmsplugin_mymodel so altering the plugin's table name is not necessary. bypass the rewrite of the default table name when the meta information is already correct
3f8b52f
@ojii

does not apply to develop
does not have tests
closed

@ojii ojii closed this Aug 28, 2011
@ajmirsky

My apologies for not creating tests, I'm working on them now.

I am seeing the same problem on 'develop', so perhaps I structured the pull request incorrectly to merge from 2.2rc1?

@ojii

I'm not convinced that this is actually an issue. I've seen no plugin-table related issues when migrating so far.

@ajmirsky

As I'm doing further investigation, it looks like it's only happening with custom plugins that I've built. Not sure why they would differ since they follow the documentation to the letter, but I'll investigate further.

also, i looked around the 2.2 docs and old message threads but couldn't find if there was any special things that one had to do for migration. is there? thanks!

@rosscdh

Hi there,

has there been any movement on this pull request? I have taken over a project where the same thing is happening. Plugins appear to have been written quite well and to the letter of the docs however migrations fail against the database with exactly this error as well as getting sql statements failing on totally incorrectly names plugin tables..

regards
rcdh

@ojii

A similar fix was merged in c5d7329

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment