Fwd: Migration issue and fix to reset database state: Duplicate Column Name

26 views
Skip to first unread message

Simon Chen

unread,
Aug 9, 2017, 12:21:37 PM8/9/17
to edx-...@googlegroups.com, Waheed Ahmed
Openedx developers

Please see the message forwarded below. Sorry for the trouble

Best

Simon Chen



Begin forwarded message:

From: Waheed Ahmed <wah...@edx.org>
Subject: Migration issue and fix to reset database state: Duplicate Column Name
Date: August 9, 2017 at 12:09:35 PM EDT
Cc: "Engineering - All (Employees, Contractors)" <eng...@edx.org>

A migration was reverted from master during the last release. If you run into the following error:
django.db.utils.OperationalError: (1060, \"Duplicate column name 'sailthru_welcome_template'\")

You can do the following to reset the database state:
  • git checkout b83925316868efcbe45ace0f3ee7df5774c6d6a6 (commit before the revert)
  • /edx/bin/edxapp-migrate-lms email_marketing 0006 (to remove "sailthru_welcome_template" column)
  • git checkout master (or wherever you were)

Regards
Waheed Ahmed
Software Engineer

Reply all
Reply to author
Forward
0 new messages