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

  • SEARCH
  • Home
  • 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 8529461
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T09:02:29+00:00 2026-06-11T09:02:29+00:00

I have a migration, 003, that creates a new table, but for some reason,

  • 0

I have a migration, 003, that creates a new table, but for some reason, South isn’t creating a new table after executing that migration:
I am doing the following command:

[kelp@web187 goals]$ python2.7 manage.py migrate main 0003_auto__add_nudge
Running migrations for main:
 - Migrating backwards to just after 0003_auto__add_nudge.
 < main:0006_auto__add_field_nudge_status

But I get the following error:

django.db.utils.DatabaseError: relation "main_nudge" does not exist

It doesn’t exist because the migration 003 is supposed to create it. Why do I get this error?

  • 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-11T09:02:30+00:00Added an answer on June 11, 2026 at 9:02 am

    It seems like you’ve faked migration 0006 forward, you should fake it backward too:

    manage.py migrate --fake yourapp 0005
    

    This will set the current migration to 0005.

    Apparently, you want to migrate back to 0002:

    manage.py migrate --fake yourapp 0002
    

    And then start over at 0003:

    manage.py migrate yourapp
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want do run migration on my app that I have on heroku but
I have a migration named 20120311145341_create_resource1s.rb. I accidently deleted that table in database. I
I have a migration that adds an index to an existing table using add_index
I have a migration that runs an SQL script to create a new Postgres
Using Grails database-migration I have a table in production defined like so: +--------------+------------+------+-----+---------+----------------+ |
i have this crazy label for each time i create a migration that use
I have an ExpenseType object that I have created with the following migration: class
consider that i have a migration as follows create_table :dummies do |t| t.decimal :the_dummy_number
We have script/generate migration add_fieldname_to_tablename fieldname:datatype syntax for adding new columns to a model.
I have the problem, that I have an migration in Rails that sets up

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.