Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [2017-08-28 21:21:19,373] DEBUG: (0.004)
- SELECT c.relname, c.relkind
- FROM pg_catalog.pg_class c
- LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
- WHERE c.relkind IN ('r', 'v')
- AND n.nspname NOT IN ('pg_catalog', 'pg_toast')
- AND pg_catalog.pg_table_is_visible(c.oid); args=None
- [2017-08-28 21:21:19,373] DEBUG: (0.004)
- SELECT c.relname, c.relkind
- FROM pg_catalog.pg_class c
- LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
- WHERE c.relkind IN ('r', 'v')
- AND n.nspname NOT IN ('pg_catalog', 'pg_toast')
- AND pg_catalog.pg_table_is_visible(c.oid); args=None
- [2017-08-28 21:21:19,377] DEBUG: (0.001) SELECT "django_migrations"."app", "django_migrations"."name" FROM "django_migrations"; args=()
- [2017-08-28 21:21:19,377] DEBUG: (0.001) SELECT "django_migrations"."app", "django_migrations"."name" FROM "django_migrations"; args=()
- [2017-08-28 21:21:19,381] DEBUG: (0.001)
- SELECT c.relname, c.relkind
- FROM pg_catalog.pg_class c
- LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
- WHERE c.relkind IN ('r', 'v')
- AND n.nspname NOT IN ('pg_catalog', 'pg_toast')
- AND pg_catalog.pg_table_is_visible(c.oid); args=None
- [2017-08-28 21:21:19,381] DEBUG: (0.001)
- SELECT c.relname, c.relkind
- FROM pg_catalog.pg_class c
- LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
- WHERE c.relkind IN ('r', 'v')
- AND n.nspname NOT IN ('pg_catalog', 'pg_toast')
- AND pg_catalog.pg_table_is_visible(c.oid); args=None
- [2017-08-28 21:21:19,383] DEBUG: (0.000) SELECT "django_migrations"."app", "django_migrations"."name" FROM "django_migrations"; args=()
- [2017-08-28 21:21:19,383] DEBUG: (0.000) SELECT "django_migrations"."app", "django_migrations"."name" FROM "django_migrations"; args=()
- Operations to perform:
- Target specific migration: 0059_add_yes_no_questions, from evaluation
- Running migrations:
- Rendering model states... DONE
- 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')])
- [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')])
- [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')]
- [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')]
- [2017-08-28 21:21:19,791] DEBUG: ALTER TABLE "evaluation_textanswer" ADD CONSTRAINT "evaluation_textanswer_id_fc520eb7_uniq" UNIQUE ("id"); (params ())
- [2017-08-28 21:21:19,791] DEBUG: ALTER TABLE "evaluation_textanswer" ADD CONSTRAINT "evaluation_textanswer_id_fc520eb7_uniq" UNIQUE ("id"); (params ())
- [2017-08-28 21:21:19,796] DEBUG: (0.004) ALTER TABLE "evaluation_textanswer" ADD CONSTRAINT "evaluation_textanswer_id_fc520eb7_uniq" UNIQUE ("id"); args=()
- [2017-08-28 21:21:19,796] DEBUG: (0.004) ALTER TABLE "evaluation_textanswer" ADD CONSTRAINT "evaluation_textanswer_id_fc520eb7_uniq" UNIQUE ("id"); args=()
- [2017-08-28 21:21:19,797] DEBUG: ALTER TABLE "evaluation_textanswer" ALTER COLUMN "id" DROP DEFAULT; (params ())
- [2017-08-28 21:21:19,797] DEBUG: ALTER TABLE "evaluation_textanswer" ALTER COLUMN "id" DROP DEFAULT; (params ())
- [2017-08-28 21:21:19,798] DEBUG: (0.000) ALTER TABLE "evaluation_textanswer" ALTER COLUMN "id" DROP DEFAULT; args=()
- [2017-08-28 21:21:19,798] DEBUG: (0.000) ALTER TABLE "evaluation_textanswer" ALTER COLUMN "id" DROP DEFAULT; args=()
- [2017-08-28 21:21:19,799] DEBUG: ALTER TABLE "evaluation_textanswer" RENAME COLUMN "id" TO "uuid"; (params ())
- [2017-08-28 21:21:19,799] DEBUG: ALTER TABLE "evaluation_textanswer" RENAME COLUMN "id" TO "uuid"; (params ())
- [2017-08-28 21:21:19,800] DEBUG: (0.000) ALTER TABLE "evaluation_textanswer" RENAME COLUMN "id" TO "uuid"; args=()
- [2017-08-28 21:21:19,800] DEBUG: (0.000) ALTER TABLE "evaluation_textanswer" RENAME COLUMN "id" TO "uuid"; args=()
- [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')])
- [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')])
- [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')]
- [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')]
- [2017-08-28 21:21:19,803] DEBUG: ALTER TABLE "evaluation_textanswer" ALTER COLUMN "uuid" DROP DEFAULT; (params ())
- [2017-08-28 21:21:19,803] DEBUG: ALTER TABLE "evaluation_textanswer" ALTER COLUMN "uuid" DROP DEFAULT; (params ())
- [2017-08-28 21:21:19,804] DEBUG: (0.000) ALTER TABLE "evaluation_textanswer" ALTER COLUMN "uuid" DROP DEFAULT; args=()
- [2017-08-28 21:21:19,804] DEBUG: (0.000) ALTER TABLE "evaluation_textanswer" ALTER COLUMN "uuid" DROP DEFAULT; args=()
- [2017-08-28 21:21:19,804] DEBUG: ALTER TABLE "evaluation_textanswer" ADD COLUMN "id" serial NOT NULL PRIMARY KEY; (params [])
- [2017-08-28 21:21:19,804] DEBUG: ALTER TABLE "evaluation_textanswer" ADD COLUMN "id" serial NOT NULL PRIMARY KEY; (params [])
- [2017-08-28 21:21:19,808] DEBUG: (0.003) ALTER TABLE "evaluation_textanswer" ADD COLUMN "id" serial NOT NULL PRIMARY KEY; args=[]
- [2017-08-28 21:21:19,808] DEBUG: (0.003) ALTER TABLE "evaluation_textanswer" ADD COLUMN "id" serial NOT NULL PRIMARY KEY; args=[]
- Traceback (most recent call last):
- File "/home/vagrant/.local/lib/python3.4/site-packages/django/db/backends/utils.py", line 65, in execute
- return self.cursor.execute(sql, params)
- psycopg2.ProgrammingError: multiple primary keys for table "evaluation_textanswer" are not allowed
- The above exception was the direct cause of the following exception:
- Traceback (most recent call last):
- File "./manage.py", line 10, in <module>
- execute_from_command_line(sys.argv)
- File "/home/vagrant/.local/lib/python3.4/site-packages/django/core/management/__init__.py", line 363, in execute_from_command_line
- utility.execute()
- File "/home/vagrant/.local/lib/python3.4/site-packages/django/core/management/__init__.py", line 355, in execute
- self.fetch_command(subcommand).run_from_argv(self.argv)
- File "/home/vagrant/.local/lib/python3.4/site-packages/django/core/management/base.py", line 283, in run_from_argv
- self.execute(*args, **cmd_options)
- File "/home/vagrant/.local/lib/python3.4/site-packages/django/core/management/base.py", line 330, in execute
- output = self.handle(*args, **options)
- File "/home/vagrant/.local/lib/python3.4/site-packages/django/core/management/commands/migrate.py", line 204, in handle
- fake_initial=fake_initial,
- File "/home/vagrant/.local/lib/python3.4/site-packages/django/db/migrations/executor.py", line 119, in migrate
- state = self._migrate_all_backwards(plan, full_plan, fake=fake)
- File "/home/vagrant/.local/lib/python3.4/site-packages/django/db/migrations/executor.py", line 194, in _migrate_all_backwards
- self.unapply_migration(states[migration], migration, fake=fake)
- File "/home/vagrant/.local/lib/python3.4/site-packages/django/db/migrations/executor.py", line 264, in unapply_migration
- state = migration.unapply(state, schema_editor)
- File "/home/vagrant/.local/lib/python3.4/site-packages/django/db/migrations/migration.py", line 178, in unapply
- operation.database_backwards(self.app_label, schema_editor, from_state, to_state)
- File "/home/vagrant/.local/lib/python3.4/site-packages/django/db/migrations/operations/fields.py", line 160, in database_backwards
- schema_editor.add_field(from_model, to_model._meta.get_field(self.name))
- File "/home/vagrant/.local/lib/python3.4/site-packages/django/db/backends/base/schema.py", line 429, in add_field
- self.execute(sql, params)
- File "/home/vagrant/.local/lib/python3.4/site-packages/django/db/backends/base/schema.py", line 120, in execute
- cursor.execute(sql, params)
- File "/home/vagrant/.local/lib/python3.4/site-packages/django/db/backends/utils.py", line 80, in execute
- return super(CursorDebugWrapper, self).execute(sql, params)
- File "/home/vagrant/.local/lib/python3.4/site-packages/django/db/backends/utils.py", line 65, in execute
- return self.cursor.execute(sql, params)
- File "/home/vagrant/.local/lib/python3.4/site-packages/django/db/utils.py", line 94, in __exit__
- six.reraise(dj_exc_type, dj_exc_value, traceback)
- File "/home/vagrant/.local/lib/python3.4/site-packages/django/utils/six.py", line 685, in reraise
- raise value.with_traceback(tb)
- File "/home/vagrant/.local/lib/python3.4/site-packages/django/db/backends/utils.py", line 65, in execute
- return self.cursor.execute(sql, params)
- django.db.utils.ProgrammingError: multiple primary keys for table "evaluation_textanswer" are not allowed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement