Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8933607
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T09:34:55+00:00 2026-06-15T09:34:55+00:00

Using django-south, is it possible to setup a table only to the last, most

  • 0

Using django-south, is it possible to setup a table only to the last, most recent configuration without applying all the preceeding migrations?

We are interested in using a 3rd party tool (django-activity-stream) but are having difficulties running all the migrations, for somewhat unknown reasons (possibly MySQL issues regarding a particular field) – specifically migration 003, which raises an error

_mysql_exceptions.OperationalError: (1170, “BLOB/TEXT column ‘object_id’ used in key specification without a key length”)
”
I strongly suspect that avoiding the migrations and going straight to the current schema will avoid this.

The ability to migrate backwards is not required, only the need to get us to the current schema right now, and I don’t want to hack the package to deal with this. I can’t seem to establish the commands, or whether this is even possible?

config:

south 0.7.6, django 1.3.x, mysql 5.5.x, django-activity-stream 0.4.4

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T09:34:57+00:00Added an answer on June 15, 2026 at 9:34 am

    This error is coming because of the way actstream handles its Generic Foreign keys. The problem arises with MySql because it sees text-fields without any
    length specified.

    This error can be fixed by making the migration 0003 a no-op.

    Change the following things in migrations 0003_text_field_ids, 0004_char_field_ids in the actstream:

    0003_text_field_ids.py:

    1. remove everything in def forwards(self, orm), def backwards(self, orm) and just write pass in both.
    2. Change TextField to PositiveIntegerField.

    0004_char_field_ids.py:

    1. In def backwards(self, orm), change TextField to PositiveIntegerField in all db.altercolumns().

    This makes migration 0003 a noop using pass for forwards and backwards and makes the model’s definition use PositiveIntegerFields for the Generic Foreign keys, so they’re kept in the same state as migration 0001 left them. Doing this, migration 0004 can pick up from the PositiveIntegerFields to varChars. Then the fix changes migration 0004 so the backward migration changes to PositiveIntegerFields instead of TextFields.

    This should hopefully fix your issue.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing a migration using Django's South, and it can only work on MySQL
I'm using Django 1.2 trunk with South 0.7 and an AutoOneToOneField copied from django-annoying.
Django and south newbie here I need to change the encoding of a table
I am building an application using django, and using django-south for the database schema
I was wondering if the following migration is possible with Django south and still
I'm using Django with MySQL and South, and everything's just dandy...until something goes wrong
I am using South with Django for database migrations. In my models.py I changed
I need to rename a foreign key in my django model using south migrations.
I'm wondering about the advantages of using (django) South during heavy initial development of
When I am removing a NOT NULL field using Django South, I get the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.