Advertisement
Guest User

Untitled

a guest
Aug 28th, 2017
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.48 KB | None | 0 0
  1. [2017-08-28 21:21:19,373] DEBUG: (0.004)
  2. SELECT c.relname, c.relkind
  3. FROM pg_catalog.pg_class c
  4. LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
  5. WHERE c.relkind IN ('r', 'v')
  6. AND n.nspname NOT IN ('pg_catalog', 'pg_toast')
  7. AND pg_catalog.pg_table_is_visible(c.oid); args=None
  8. [2017-08-28 21:21:19,373] DEBUG: (0.004)
  9. SELECT c.relname, c.relkind
  10. FROM pg_catalog.pg_class c
  11. LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
  12. WHERE c.relkind IN ('r', 'v')
  13. AND n.nspname NOT IN ('pg_catalog', 'pg_toast')
  14. AND pg_catalog.pg_table_is_visible(c.oid); args=None
  15. [2017-08-28 21:21:19,377] DEBUG: (0.001) SELECT "django_migrations"."app", "django_migrations"."name" FROM "django_migrations"; args=()
  16. [2017-08-28 21:21:19,377] DEBUG: (0.001) SELECT "django_migrations"."app", "django_migrations"."name" FROM "django_migrations"; args=()
  17. [2017-08-28 21:21:19,381] DEBUG: (0.001)
  18. SELECT c.relname, c.relkind
  19. FROM pg_catalog.pg_class c
  20. LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
  21. WHERE c.relkind IN ('r', 'v')
  22. AND n.nspname NOT IN ('pg_catalog', 'pg_toast')
  23. AND pg_catalog.pg_table_is_visible(c.oid); args=None
  24. [2017-08-28 21:21:19,381] DEBUG: (0.001)
  25. SELECT c.relname, c.relkind
  26. FROM pg_catalog.pg_class c
  27. LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
  28. WHERE c.relkind IN ('r', 'v')
  29. AND n.nspname NOT IN ('pg_catalog', 'pg_toast')
  30. AND pg_catalog.pg_table_is_visible(c.oid); args=None
  31. [2017-08-28 21:21:19,383] DEBUG: (0.000) SELECT "django_migrations"."app", "django_migrations"."name" FROM "django_migrations"; args=()
  32. [2017-08-28 21:21:19,383] DEBUG: (0.000) SELECT "django_migrations"."app", "django_migrations"."name" FROM "django_migrations"; args=()
  33. Operations to perform:
  34. Target specific migration: 0059_add_yes_no_questions, from evaluation
  35. Running migrations:
  36. Rendering model states... DONE
  37. Unapplying evaluation.0060_replace_textanswer_id_with_uuid...[2017-08-28 21:21:19,788] DEBUG: ALTER TABLE "evaluation_textanswer" ALTER COLUMN "id" SET DEFAULT %s; (params [UUID('626fb80c-4973-4599-927b-550f96cc610e')])
  38. [2017-08-28 21:21:19,788] DEBUG: ALTER TABLE "evaluation_textanswer" ALTER COLUMN "id" SET DEFAULT %s; (params [UUID('626fb80c-4973-4599-927b-550f96cc610e')])
  39. [2017-08-28 21:21:19,790] DEBUG: (0.001) ALTER TABLE "evaluation_textanswer" ALTER COLUMN "id" SET DEFAULT '626fb80c-4973-4599-927b-550f96cc610e'::uuid; args=[UUID('626fb80c-4973-4599-927b-550f96cc610e')]
  40. [2017-08-28 21:21:19,790] DEBUG: (0.001) ALTER TABLE "evaluation_textanswer" ALTER COLUMN "id" SET DEFAULT '626fb80c-4973-4599-927b-550f96cc610e'::uuid; args=[UUID('626fb80c-4973-4599-927b-550f96cc610e')]
  41. [2017-08-28 21:21:19,791] DEBUG: ALTER TABLE "evaluation_textanswer" ADD CONSTRAINT "evaluation_textanswer_id_fc520eb7_uniq" UNIQUE ("id"); (params ())
  42. [2017-08-28 21:21:19,791] DEBUG: ALTER TABLE "evaluation_textanswer" ADD CONSTRAINT "evaluation_textanswer_id_fc520eb7_uniq" UNIQUE ("id"); (params ())
  43. [2017-08-28 21:21:19,796] DEBUG: (0.004) ALTER TABLE "evaluation_textanswer" ADD CONSTRAINT "evaluation_textanswer_id_fc520eb7_uniq" UNIQUE ("id"); args=()
  44. [2017-08-28 21:21:19,796] DEBUG: (0.004) ALTER TABLE "evaluation_textanswer" ADD CONSTRAINT "evaluation_textanswer_id_fc520eb7_uniq" UNIQUE ("id"); args=()
  45. [2017-08-28 21:21:19,797] DEBUG: ALTER TABLE "evaluation_textanswer" ALTER COLUMN "id" DROP DEFAULT; (params ())
  46. [2017-08-28 21:21:19,797] DEBUG: ALTER TABLE "evaluation_textanswer" ALTER COLUMN "id" DROP DEFAULT; (params ())
  47. [2017-08-28 21:21:19,798] DEBUG: (0.000) ALTER TABLE "evaluation_textanswer" ALTER COLUMN "id" DROP DEFAULT; args=()
  48. [2017-08-28 21:21:19,798] DEBUG: (0.000) ALTER TABLE "evaluation_textanswer" ALTER COLUMN "id" DROP DEFAULT; args=()
  49. [2017-08-28 21:21:19,799] DEBUG: ALTER TABLE "evaluation_textanswer" RENAME COLUMN "id" TO "uuid"; (params ())
  50. [2017-08-28 21:21:19,799] DEBUG: ALTER TABLE "evaluation_textanswer" RENAME COLUMN "id" TO "uuid"; (params ())
  51. [2017-08-28 21:21:19,800] DEBUG: (0.000) ALTER TABLE "evaluation_textanswer" RENAME COLUMN "id" TO "uuid"; args=()
  52. [2017-08-28 21:21:19,800] DEBUG: (0.000) ALTER TABLE "evaluation_textanswer" RENAME COLUMN "id" TO "uuid"; args=()
  53. [2017-08-28 21:21:19,801] DEBUG: ALTER TABLE "evaluation_textanswer" ALTER COLUMN "uuid" SET DEFAULT %s; (params [UUID('d1bb8353-bc63-4c0a-881c-20c5cf0500b5')])
  54. [2017-08-28 21:21:19,801] DEBUG: ALTER TABLE "evaluation_textanswer" ALTER COLUMN "uuid" SET DEFAULT %s; (params [UUID('d1bb8353-bc63-4c0a-881c-20c5cf0500b5')])
  55. [2017-08-28 21:21:19,802] DEBUG: (0.000) ALTER TABLE "evaluation_textanswer" ALTER COLUMN "uuid" SET DEFAULT 'd1bb8353-bc63-4c0a-881c-20c5cf0500b5'::uuid; args=[UUID('d1bb8353-bc63-4c0a-881c-20c5cf0500b5')]
  56. [2017-08-28 21:21:19,802] DEBUG: (0.000) ALTER TABLE "evaluation_textanswer" ALTER COLUMN "uuid" SET DEFAULT 'd1bb8353-bc63-4c0a-881c-20c5cf0500b5'::uuid; args=[UUID('d1bb8353-bc63-4c0a-881c-20c5cf0500b5')]
  57. [2017-08-28 21:21:19,803] DEBUG: ALTER TABLE "evaluation_textanswer" ALTER COLUMN "uuid" DROP DEFAULT; (params ())
  58. [2017-08-28 21:21:19,803] DEBUG: ALTER TABLE "evaluation_textanswer" ALTER COLUMN "uuid" DROP DEFAULT; (params ())
  59. [2017-08-28 21:21:19,804] DEBUG: (0.000) ALTER TABLE "evaluation_textanswer" ALTER COLUMN "uuid" DROP DEFAULT; args=()
  60. [2017-08-28 21:21:19,804] DEBUG: (0.000) ALTER TABLE "evaluation_textanswer" ALTER COLUMN "uuid" DROP DEFAULT; args=()
  61. [2017-08-28 21:21:19,804] DEBUG: ALTER TABLE "evaluation_textanswer" ADD COLUMN "id" serial NOT NULL PRIMARY KEY; (params [])
  62. [2017-08-28 21:21:19,804] DEBUG: ALTER TABLE "evaluation_textanswer" ADD COLUMN "id" serial NOT NULL PRIMARY KEY; (params [])
  63. [2017-08-28 21:21:19,808] DEBUG: (0.003) ALTER TABLE "evaluation_textanswer" ADD COLUMN "id" serial NOT NULL PRIMARY KEY; args=[]
  64. [2017-08-28 21:21:19,808] DEBUG: (0.003) ALTER TABLE "evaluation_textanswer" ADD COLUMN "id" serial NOT NULL PRIMARY KEY; args=[]
  65. Traceback (most recent call last):
  66. File "/home/vagrant/.local/lib/python3.4/site-packages/django/db/backends/utils.py", line 65, in execute
  67. return self.cursor.execute(sql, params)
  68. psycopg2.ProgrammingError: multiple primary keys for table "evaluation_textanswer" are not allowed
  69.  
  70.  
  71. The above exception was the direct cause of the following exception:
  72.  
  73. Traceback (most recent call last):
  74. File "./manage.py", line 10, in <module>
  75. execute_from_command_line(sys.argv)
  76. File "/home/vagrant/.local/lib/python3.4/site-packages/django/core/management/__init__.py", line 363, in execute_from_command_line
  77. utility.execute()
  78. File "/home/vagrant/.local/lib/python3.4/site-packages/django/core/management/__init__.py", line 355, in execute
  79. self.fetch_command(subcommand).run_from_argv(self.argv)
  80. File "/home/vagrant/.local/lib/python3.4/site-packages/django/core/management/base.py", line 283, in run_from_argv
  81. self.execute(*args, **cmd_options)
  82. File "/home/vagrant/.local/lib/python3.4/site-packages/django/core/management/base.py", line 330, in execute
  83. output = self.handle(*args, **options)
  84. File "/home/vagrant/.local/lib/python3.4/site-packages/django/core/management/commands/migrate.py", line 204, in handle
  85. fake_initial=fake_initial,
  86. File "/home/vagrant/.local/lib/python3.4/site-packages/django/db/migrations/executor.py", line 119, in migrate
  87. state = self._migrate_all_backwards(plan, full_plan, fake=fake)
  88. File "/home/vagrant/.local/lib/python3.4/site-packages/django/db/migrations/executor.py", line 194, in _migrate_all_backwards
  89. self.unapply_migration(states[migration], migration, fake=fake)
  90. File "/home/vagrant/.local/lib/python3.4/site-packages/django/db/migrations/executor.py", line 264, in unapply_migration
  91. state = migration.unapply(state, schema_editor)
  92. File "/home/vagrant/.local/lib/python3.4/site-packages/django/db/migrations/migration.py", line 178, in unapply
  93. operation.database_backwards(self.app_label, schema_editor, from_state, to_state)
  94. File "/home/vagrant/.local/lib/python3.4/site-packages/django/db/migrations/operations/fields.py", line 160, in database_backwards
  95. schema_editor.add_field(from_model, to_model._meta.get_field(self.name))
  96. File "/home/vagrant/.local/lib/python3.4/site-packages/django/db/backends/base/schema.py", line 429, in add_field
  97. self.execute(sql, params)
  98. File "/home/vagrant/.local/lib/python3.4/site-packages/django/db/backends/base/schema.py", line 120, in execute
  99. cursor.execute(sql, params)
  100. File "/home/vagrant/.local/lib/python3.4/site-packages/django/db/backends/utils.py", line 80, in execute
  101. return super(CursorDebugWrapper, self).execute(sql, params)
  102. File "/home/vagrant/.local/lib/python3.4/site-packages/django/db/backends/utils.py", line 65, in execute
  103. return self.cursor.execute(sql, params)
  104. File "/home/vagrant/.local/lib/python3.4/site-packages/django/db/utils.py", line 94, in __exit__
  105. six.reraise(dj_exc_type, dj_exc_value, traceback)
  106. File "/home/vagrant/.local/lib/python3.4/site-packages/django/utils/six.py", line 685, in reraise
  107. raise value.with_traceback(tb)
  108. File "/home/vagrant/.local/lib/python3.4/site-packages/django/db/backends/utils.py", line 65, in execute
  109. return self.cursor.execute(sql, params)
  110. django.db.utils.ProgrammingError: multiple primary keys for table "evaluation_textanswer" are not allowed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement