Skip to content

Instantly share code, notes, and snippets.

@kahrl
Created September 15, 2014 21:59
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save kahrl/330ebe3761f0d0b62c3c to your computer and use it in GitHub Desktop.
root@drac1:/var/www/weblate# ./manage.py migrate
Running migrations for trans:
- Migrating forwards to 0058_auto__add_advertisement.
> lang:0001_initial
> trans:0001_initial
> trans:0002_add_subproject_locking
> trans:0003_add_translation_disabling
> trans:0004_add_new_language_choice
> trans:0005_add_vcs_config_to_project
> trans:0006_add_push_on_commit
> trans:0007_add_language_code
> trans:0008_add_translation_locking
> trans:0009_add_set_translation_team
> trans:0010_add_merge_style
> trans:0011_add_file_format
> trans:0012_enlarge_revision
> trans:0013_auto__add_field_subproject_report_source_bugs
> trans:0014_auto__chg_field_check_language
> trans:0015_auto__add_field_indexupdate_source
> trans:0016_auto__add_comment
> trans:0017_auto__add_field_change_action
> trans:0018_auto__add_field_change_translation
> trans:0019_fill_in_translation_reference
> trans:0020_auto__chg_field_change_translation__chg_field_change_unit
> trans:0021_auto__chg_field_change_user
> lang:0002_auto__add_field_language_direction
> trans:0022_auto__add_field_subproject_allow_translation_propagation
> trans:0023_auto__chg_field_project_commit_message
> trans:0024_auto__add_field_unit_previous_source
> trans:0025_auto__add_field_project_enable_acl
> trans:0026_auto__add_unique_subproject_project_name__add_unique_subproject_projec
> lang:0003_auto__add_field_language_plural_type
> trans:0027_auto__chg_field_subproject_template
> trans:0028_auto__chg_field_subproject_push
> trans:0029_auto__add_field_translation_failing_checks
> trans:0030_update_failing_checks
> trans:0031_auto__add_field_translation_have_suggestion
> trans:0032_update_have_suggestion
> trans:0033_auto__add_field_subproject_extra_commit_file__add_field_subproject_pre
> trans:0034_auto__add_field_subproject_git_export
> trans:0035_auto__add_field_unit_has_suggestion__add_field_unit_has_comment__add_f
> trans:0036_update_unit_stats
> trans:0037_auto__add_field_translation_translated_words__add_field_translation_to
> trans:0038_update_word_counts
> trans:0039_auto__add_unique_check_project_checksum_check_language
> trans:0040_change_plural_separator
> trans:0041_auto__add_field_subproject_save_history__add_field_change_target
> lang:0004_fill_in_plural_type
> trans:0042_auto__add_field_project_license__add_field_project_license_url
> trans:0043_auto__add_vote__add_unique_vote_suggestion_user
> trans:0044_auto__add_field_subproject_suggestion_voting__add_field_subproject_sug
> trans:0045_auto__add_field_subproject_check_flags
> trans:0046_auto__add_field_unit_contentsum
> trans:0047_fill_in_contentsum
> trans:0048_auto__add_field_check_contentsum__add_field_suggestion_contentsum__add
> trans:0049_link_unitdata_on_contentsum
> trans:0050_auto__del_field_check_checksum__del_unique_check_project_checksum_chec
> trans:0051_auto__add_field_translation_commit_message
> trans:0052_auto__add_field_subproject_new_base
> trans:0053_auto__add_field_change_author
> trans:0054_fill_in_change_author
> trans:0055_auto__add_field_change_dictionary__chg_field_change_translation
> trans:0056_auto__add_source__add_unique_source_checksum_subproject
> trans:0057_create_source_strings
> trans:0058_auto__add_advertisement
- Loading initial data for trans.
Installed 0 object(s) from 0 fixture(s)
Running migrations for lang:
- Nothing to migrate.
- Loading initial data for lang.
Installed 0 object(s) from 0 fixture(s)
Running migrations for accounts:
- Migrating forwards to 0008_add_full_name.
> accounts:0001_initial
> accounts:0002_subscriptions
> accounts:0003_auto__add_field_profile_subscribe_new_comment
> accounts:0004_auto__add_field_profile_subscribe_merge_failure
> accounts:0005_auto__add_field_profile_subscribe_new_language
> accounts:0006_auto__add_verifiedemail
FATAL ERROR - The following SQL query failed: ALTER TABLE "accounts_verifiedemail" ADD CONSTRAINT "social_id_refs_id_3d853e6c22defcf1" FOREIGN KEY ("social_id") REFERENCES "social_auth_usersocialauth" ("id") DEFERRABLE INITIALLY DEFERRED;
The error was: relation "social_auth_usersocialauth" does not exist
Error in migration: accounts:0006_auto__add_verifiedemail
Traceback (most recent call last):
File "./manage.py", line 31, in <module>
execute_from_command_line(sys.argv)
File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 399, in execute_from_command_line
utility.execute()
File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 242, in run_from_argv
self.execute(*args, **options.__dict__)
File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 285, in execute
output = self.handle(*args, **options)
File "/usr/lib/python2.7/dist-packages/south/management/commands/migrate.py", line 107, in handle
ignore_ghosts = ignore_ghosts,
File "/usr/lib/python2.7/dist-packages/south/migration/__init__.py", line 219, in migrate_app
success = migrator.migrate_many(target, workplan, database)
File "/usr/lib/python2.7/dist-packages/south/migration/migrators.py", line 235, in migrate_many
result = migrator.__class__.migrate_many(migrator, target, migrations, database)
File "/usr/lib/python2.7/dist-packages/south/migration/migrators.py", line 310, in migrate_many
result = self.migrate(migration, database)
File "/usr/lib/python2.7/dist-packages/south/migration/migrators.py", line 133, in migrate
result = self.run(migration)
File "/usr/lib/python2.7/dist-packages/south/migration/migrators.py", line 107, in run
return self.run_migration(migration)
File "/usr/lib/python2.7/dist-packages/south/migration/migrators.py", line 82, in run_migration
south.db.db.execute_deferred_sql()
File "/usr/lib/python2.7/dist-packages/south/db/generic.py", line 309, in execute_deferred_sql
self.execute(sql)
File "/usr/lib/python2.7/dist-packages/south/db/generic.py", line 273, in execute
cursor.execute(sql, params)
File "/usr/lib/python2.7/dist-packages/django/db/backends/util.py", line 53, in execute
return self.cursor.execute(sql, params)
File "/usr/lib/python2.7/dist-packages/django/db/utils.py", line 99, in __exit__
six.reraise(dj_exc_type, dj_exc_value, traceback)
File "/usr/lib/python2.7/dist-packages/django/db/backends/util.py", line 53, in execute
return self.cursor.execute(sql, params)
django.db.utils.ProgrammingError: relation "social_auth_usersocialauth" does not exist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment