Skip to content

Instantly share code, notes, and snippets.

@m0r13
Created January 15, 2014 17:55
Show Gist options
  • Save m0r13/8441015 to your computer and use it in GitHub Desktop.
Save m0r13/8441015 to your computer and use it in GitHub Desktop.
[ 5:53PM ] [ moritz@vs2387:~/abizeitung_django/src(master✗) ]
$ ./manage.py migrate
Running migrations for abizeitung:
- Migrating forwards to 0016_auto__del_field_student_test.
> abizeitung:0001_initial
> abizeitung:0002_auto__add_field_student_test
> abizeitung:0003_auto__add_field_student_tutor
> abizeitung:0004_auto__add_field_teachersurvey_question__add_field_studentsurvey_questi
> abizeitung:0005_auto__add_studentsurveyentry
> abizeitung:0006_auto__del_studentsurveyentry
> abizeitung:0007_auto__add_teachersurveyentry__add_studentsurveyentry
> abizeitung:0008_auto__add_field_teachersurveyentry_survey__add_field_studentsurveyentr
> abizeitung:0009_auto__add_field_student_picture
> abizeitung:0010_auto__add_field_student_baby_picture
> abizeitung:0011_auto__del_field_student_baby_picture__add_field_student_school_picture
> abizeitung:0012_auto__add_field_student_lebensmotto__add_field_student_woerter_phrasen
FATAL ERROR - The following SQL query failed: ALTER TABLE `abizeitung_student` ADD COLUMN `lebensmotto` varchar(255) NOT NULL DEFAULT '';
The error was: (1025, "Error on rename of './abizeitung2/#sql-269f_1c3f5' to './abizeitung2/abizeitung_student' (errno: 150)")
! Error found during real run of migration! Aborting.
! Since you have a database that does not support running
! schema-altering statements in transactions, we have had
! to leave it in an interim state between migrations.
! You *might* be able to recover with: - no dry run output for delete_foreign_key() due to dynamic DDL, sorry
= ALTER TABLE `abizeitung_student` DROP COLUMN `lebensmotto` CASCADE; []
- no dry run output for delete_foreign_key() due to dynamic DDL, sorry
= ALTER TABLE `abizeitung_student` DROP COLUMN `woerter_phrasen` CASCADE; []
- no dry run output for alter_column() due to dynamic DDL, sorry
= ALTER TABLE `abizeitung_student` ADD CONSTRAINT `abizeitung_student_user_id_65c901c715b842e3_uniq` UNIQUE (`user_id`) []
! The South developers regret this has happened, and would
! like to gently persuade you to consider a slightly
! easier-to-deal-with DBMS (one that supports DDL transactions)
! NOTE: The error which caused the migration to fail is further up.
Error in migration: abizeitung:0012_auto__add_field_student_lebensmotto__add_field_student_woerter_phrasen
DatabaseError: (1025, "Error on rename of './abizeitung2/#sql-269f_1c3f5' to './abizeitung2/abizeitung_student' (errno: 150)")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment