| 1 | Testing migrations with Django 2, PostgreSQL 10
|
|---|
| 2 | -- Virtual env: ./venv-django2
|
|---|
| 3 | WARNING: You are using pip version 19.2.3, however version 19.3.1 is available.
|
|---|
| 4 | You should consider upgrading via the 'pip install --upgrade pip' command.
|
|---|
| 5 | -- Settings module: settings_django2_psql10
|
|---|
| 6 | Operations to perform:
|
|---|
| 7 | Apply all migrations: admin, app, auth, contenttypes, sessions
|
|---|
| 8 | Running migrations:
|
|---|
| 9 | Applying contenttypes.0001_initial... OK
|
|---|
| 10 | Applying auth.0001_initial... OK
|
|---|
| 11 | Applying admin.0001_initial... OK
|
|---|
| 12 | Applying admin.0002_logentry_remove_auto_add... OK
|
|---|
| 13 | Applying admin.0003_logentry_add_action_flag_choices... OK
|
|---|
| 14 | Applying app.0001_initial... OK
|
|---|
| 15 | Applying app.0002_auto_20191218_1353... OK
|
|---|
| 16 | Applying contenttypes.0002_remove_content_type_name... OK
|
|---|
| 17 | Applying auth.0002_alter_permission_name_max_length... OK
|
|---|
| 18 | Applying auth.0003_alter_user_email_max_length... OK
|
|---|
| 19 | Applying auth.0004_alter_user_username_opts... OK
|
|---|
| 20 | Applying auth.0005_alter_user_last_login_null... OK
|
|---|
| 21 | Applying auth.0006_require_contenttypes_0002... OK
|
|---|
| 22 | Applying auth.0007_alter_validators_add_error_messages... OK
|
|---|
| 23 | Applying auth.0008_alter_user_username_max_length... OK
|
|---|
| 24 | Applying auth.0009_alter_user_last_name_max_length... OK
|
|---|
| 25 | Applying auth.0010_alter_group_name_max_length... OK
|
|---|
| 26 | Applying auth.0011_update_proxy_permissions... OK
|
|---|
| 27 | Applying sessions.0001_initial... OK
|
|---|
| 28 |
|
|---|
| 29 |
|
|---|
| 30 | Testing migrations with Django 2, PostgreSQL 11.5
|
|---|
| 31 | -- Virtual env: ./venv-django2
|
|---|
| 32 | WARNING: You are using pip version 19.2.3, however version 19.3.1 is available.
|
|---|
| 33 | You should consider upgrading via the 'pip install --upgrade pip' command.
|
|---|
| 34 | -- Settings module: settings_django2_psql115
|
|---|
| 35 | Operations to perform:
|
|---|
| 36 | Apply all migrations: admin, app, auth, contenttypes, sessions
|
|---|
| 37 | Running migrations:
|
|---|
| 38 | Applying contenttypes.0001_initial... OK
|
|---|
| 39 | Applying auth.0001_initial... OK
|
|---|
| 40 | Applying admin.0001_initial... OK
|
|---|
| 41 | Applying admin.0002_logentry_remove_auto_add... OK
|
|---|
| 42 | Applying admin.0003_logentry_add_action_flag_choices... OK
|
|---|
| 43 | Applying app.0001_initial... OK
|
|---|
| 44 | Applying app.0002_auto_20191218_1353... OK
|
|---|
| 45 | Applying contenttypes.0002_remove_content_type_name... OK
|
|---|
| 46 | Applying auth.0002_alter_permission_name_max_length... OK
|
|---|
| 47 | Applying auth.0003_alter_user_email_max_length... OK
|
|---|
| 48 | Applying auth.0004_alter_user_username_opts... OK
|
|---|
| 49 | Applying auth.0005_alter_user_last_login_null... OK
|
|---|
| 50 | Applying auth.0006_require_contenttypes_0002... OK
|
|---|
| 51 | Applying auth.0007_alter_validators_add_error_messages... OK
|
|---|
| 52 | Applying auth.0008_alter_user_username_max_length... OK
|
|---|
| 53 | Applying auth.0009_alter_user_last_name_max_length... OK
|
|---|
| 54 | Applying auth.0010_alter_group_name_max_length... OK
|
|---|
| 55 | Applying auth.0011_update_proxy_permissions... OK
|
|---|
| 56 | Applying sessions.0001_initial... OK
|
|---|
| 57 |
|
|---|
| 58 |
|
|---|
| 59 | Testing migrations with Django 3, PostgreSQL 9.6
|
|---|
| 60 | -- Virtual env: ./venv-django3
|
|---|
| 61 | WARNING: You are using pip version 19.2.3, however version 19.3.1 is available.
|
|---|
| 62 | You should consider upgrading via the 'pip install --upgrade pip' command.
|
|---|
| 63 | -- Settings module: settings_django3_psql96
|
|---|
| 64 | Operations to perform:
|
|---|
| 65 | Apply all migrations: admin, app, auth, contenttypes, sessions
|
|---|
| 66 | Running migrations:
|
|---|
| 67 | Applying contenttypes.0001_initial... OK
|
|---|
| 68 | Applying auth.0001_initial... OK
|
|---|
| 69 | Applying admin.0001_initial... OK
|
|---|
| 70 | Applying admin.0002_logentry_remove_auto_add... OK
|
|---|
| 71 | Applying admin.0003_logentry_add_action_flag_choices... OK
|
|---|
| 72 | Applying app.0001_initial... OK
|
|---|
| 73 | Applying app.0002_auto_20191218_1353... OK
|
|---|
| 74 | Applying contenttypes.0002_remove_content_type_name... OK
|
|---|
| 75 | Applying auth.0002_alter_permission_name_max_length... OK
|
|---|
| 76 | Applying auth.0003_alter_user_email_max_length... OK
|
|---|
| 77 | Applying auth.0004_alter_user_username_opts... OK
|
|---|
| 78 | Applying auth.0005_alter_user_last_login_null... OK
|
|---|
| 79 | Applying auth.0006_require_contenttypes_0002... OK
|
|---|
| 80 | Applying auth.0007_alter_validators_add_error_messages... OK
|
|---|
| 81 | Applying auth.0008_alter_user_username_max_length... OK
|
|---|
| 82 | Applying auth.0009_alter_user_last_name_max_length... OK
|
|---|
| 83 | Applying auth.0010_alter_group_name_max_length... OK
|
|---|
| 84 | Applying auth.0011_update_proxy_permissions... OK
|
|---|
| 85 | Applying sessions.0001_initial... OK
|
|---|
| 86 |
|
|---|
| 87 |
|
|---|
| 88 | Testing migrations with Django 3, PostgreSQL 10
|
|---|
| 89 | -- Virtual env: ./venv-django3
|
|---|
| 90 | WARNING: You are using pip version 19.2.3, however version 19.3.1 is available.
|
|---|
| 91 | You should consider upgrading via the 'pip install --upgrade pip' command.
|
|---|
| 92 | -- Settings module: settings_django3_psql10
|
|---|
| 93 | Operations to perform:
|
|---|
| 94 | Apply all migrations: admin, app, auth, contenttypes, sessions
|
|---|
| 95 | Running migrations:
|
|---|
| 96 | Applying contenttypes.0001_initial... OK
|
|---|
| 97 | Applying auth.0001_initial... OK
|
|---|
| 98 | Applying admin.0001_initial... OK
|
|---|
| 99 | Applying admin.0002_logentry_remove_auto_add... OK
|
|---|
| 100 | Applying admin.0003_logentry_add_action_flag_choices... OK
|
|---|
| 101 | Applying app.0001_initial... OK
|
|---|
| 102 | Applying app.0002_auto_20191218_1353...Traceback (most recent call last):
|
|---|
| 103 | File "/home/janne/code/django-postgresql-migrations/venv-django3/lib/python3.8/site-packages/django/db/backends/utils.py", line 86, in _execute
|
|---|
| 104 | return self.cursor.execute(sql, params)
|
|---|
| 105 | psycopg2.errors.ObjectInUse: cannot CREATE INDEX "app_value" because it has pending trigger events
|
|---|
| 106 |
|
|---|
| 107 |
|
|---|
| 108 | The above exception was the direct cause of the following exception:
|
|---|
| 109 |
|
|---|
| 110 | Traceback (most recent call last):
|
|---|
| 111 | File "manage.py", line 21, in <module>
|
|---|
| 112 | main()
|
|---|
| 113 | File "manage.py", line 17, in main
|
|---|
| 114 | execute_from_command_line(sys.argv)
|
|---|
| 115 | File "/home/janne/code/django-postgresql-migrations/venv-django3/lib/python3.8/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
|
|---|
| 116 | utility.execute()
|
|---|
| 117 | File "/home/janne/code/django-postgresql-migrations/venv-django3/lib/python3.8/site-packages/django/core/management/__init__.py", line 395, in execute
|
|---|
| 118 | self.fetch_command(subcommand).run_from_argv(self.argv)
|
|---|
| 119 | File "/home/janne/code/django-postgresql-migrations/venv-django3/lib/python3.8/site-packages/django/core/management/base.py", line 328, in run_from_argv
|
|---|
| 120 | self.execute(*args, **cmd_options)
|
|---|
| 121 | File "/home/janne/code/django-postgresql-migrations/venv-django3/lib/python3.8/site-packages/django/core/management/base.py", line 369, in execute
|
|---|
| 122 | output = self.handle(*args, **options)
|
|---|
| 123 | File "/home/janne/code/django-postgresql-migrations/venv-django3/lib/python3.8/site-packages/django/core/management/base.py", line 83, in wrapped
|
|---|
| 124 | res = handle_func(*args, **kwargs)
|
|---|
| 125 | File "/home/janne/code/django-postgresql-migrations/venv-django3/lib/python3.8/site-packages/django/core/management/commands/migrate.py", line 231, in handle
|
|---|
| 126 | post_migrate_state = executor.migrate(
|
|---|
| 127 | File "/home/janne/code/django-postgresql-migrations/venv-django3/lib/python3.8/site-packages/django/db/migrations/executor.py", line 117, in migrate
|
|---|
| 128 | state = self._migrate_all_forwards(state, plan, full_plan, fake=fake, fake_initial=fake_initial)
|
|---|
| 129 | File "/home/janne/code/django-postgresql-migrations/venv-django3/lib/python3.8/site-packages/django/db/migrations/executor.py", line 147, in _migrate_all_forwards
|
|---|
| 130 | state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial)
|
|---|
| 131 | File "/home/janne/code/django-postgresql-migrations/venv-django3/lib/python3.8/site-packages/django/db/migrations/executor.py", line 247, in apply_migration
|
|---|
| 132 | migration_recorded = True
|
|---|
| 133 | File "/home/janne/code/django-postgresql-migrations/venv-django3/lib/python3.8/site-packages/django/db/backends/base/schema.py", line 115, in __exit__
|
|---|
| 134 | self.execute(sql)
|
|---|
| 135 | File "/home/janne/code/django-postgresql-migrations/venv-django3/lib/python3.8/site-packages/django/db/backends/base/schema.py", line 142, in execute
|
|---|
| 136 | cursor.execute(sql, params)
|
|---|
| 137 | File "/home/janne/code/django-postgresql-migrations/venv-django3/lib/python3.8/site-packages/django/db/backends/utils.py", line 100, in execute
|
|---|
| 138 | return super().execute(sql, params)
|
|---|
| 139 | File "/home/janne/code/django-postgresql-migrations/venv-django3/lib/python3.8/site-packages/django/db/backends/utils.py", line 68, in execute
|
|---|
| 140 | return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
|
|---|
| 141 | File "/home/janne/code/django-postgresql-migrations/venv-django3/lib/python3.8/site-packages/django/db/backends/utils.py", line 77, in _execute_with_wrappers
|
|---|
| 142 | return executor(sql, params, many, context)
|
|---|
| 143 | File "/home/janne/code/django-postgresql-migrations/venv-django3/lib/python3.8/site-packages/django/db/backends/utils.py", line 86, in _execute
|
|---|
| 144 | return self.cursor.execute(sql, params)
|
|---|
| 145 | File "/home/janne/code/django-postgresql-migrations/venv-django3/lib/python3.8/site-packages/django/db/utils.py", line 90, in __exit__
|
|---|
| 146 | raise dj_exc_value.with_traceback(traceback) from exc_value
|
|---|
| 147 | File "/home/janne/code/django-postgresql-migrations/venv-django3/lib/python3.8/site-packages/django/db/backends/utils.py", line 86, in _execute
|
|---|
| 148 | return self.cursor.execute(sql, params)
|
|---|
| 149 | django.db.utils.OperationalError: cannot CREATE INDEX "app_value" because it has pending trigger events
|
|---|
| 150 |
|
|---|
| 151 |
|
|---|
| 152 |
|
|---|
| 153 | Testing migrations with Django 3, PostgreSQL 11.5
|
|---|
| 154 | -- Virtual env: ./venv-django3
|
|---|
| 155 | WARNING: You are using pip version 19.2.3, however version 19.3.1 is available.
|
|---|
| 156 | You should consider upgrading via the 'pip install --upgrade pip' command.
|
|---|
| 157 | -- Settings module: settings_django3_psql115
|
|---|
| 158 | Operations to perform:
|
|---|
| 159 | Apply all migrations: admin, app, auth, contenttypes, sessions
|
|---|
| 160 | Running migrations:
|
|---|
| 161 | Applying contenttypes.0001_initial... OK
|
|---|
| 162 | Applying auth.0001_initial... OK
|
|---|
| 163 | Applying admin.0001_initial... OK
|
|---|
| 164 | Applying admin.0002_logentry_remove_auto_add... OK
|
|---|
| 165 | Applying admin.0003_logentry_add_action_flag_choices... OK
|
|---|
| 166 | Applying app.0001_initial... OK
|
|---|
| 167 | Applying app.0002_auto_20191218_1353...Traceback (most recent call last):
|
|---|
| 168 | File "/home/janne/code/django-postgresql-migrations/venv-django3/lib/python3.8/site-packages/django/db/backends/utils.py", line 86, in _execute
|
|---|
| 169 | return self.cursor.execute(sql, params)
|
|---|
| 170 | psycopg2.errors.ObjectInUse: cannot CREATE INDEX "app_value" because it has pending trigger events
|
|---|
| 171 |
|
|---|
| 172 |
|
|---|
| 173 | The above exception was the direct cause of the following exception:
|
|---|
| 174 |
|
|---|
| 175 | Traceback (most recent call last):
|
|---|
| 176 | File "manage.py", line 21, in <module>
|
|---|
| 177 | main()
|
|---|
| 178 | File "manage.py", line 17, in main
|
|---|
| 179 | execute_from_command_line(sys.argv)
|
|---|
| 180 | File "/home/janne/code/django-postgresql-migrations/venv-django3/lib/python3.8/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
|
|---|
| 181 | utility.execute()
|
|---|
| 182 | File "/home/janne/code/django-postgresql-migrations/venv-django3/lib/python3.8/site-packages/django/core/management/__init__.py", line 395, in execute
|
|---|
| 183 | self.fetch_command(subcommand).run_from_argv(self.argv)
|
|---|
| 184 | File "/home/janne/code/django-postgresql-migrations/venv-django3/lib/python3.8/site-packages/django/core/management/base.py", line 328, in run_from_argv
|
|---|
| 185 | self.execute(*args, **cmd_options)
|
|---|
| 186 | File "/home/janne/code/django-postgresql-migrations/venv-django3/lib/python3.8/site-packages/django/core/management/base.py", line 369, in execute
|
|---|
| 187 | output = self.handle(*args, **options)
|
|---|
| 188 | File "/home/janne/code/django-postgresql-migrations/venv-django3/lib/python3.8/site-packages/django/core/management/base.py", line 83, in wrapped
|
|---|
| 189 | res = handle_func(*args, **kwargs)
|
|---|
| 190 | File "/home/janne/code/django-postgresql-migrations/venv-django3/lib/python3.8/site-packages/django/core/management/commands/migrate.py", line 231, in handle
|
|---|
| 191 | post_migrate_state = executor.migrate(
|
|---|
| 192 | File "/home/janne/code/django-postgresql-migrations/venv-django3/lib/python3.8/site-packages/django/db/migrations/executor.py", line 117, in migrate
|
|---|
| 193 | state = self._migrate_all_forwards(state, plan, full_plan, fake=fake, fake_initial=fake_initial)
|
|---|
| 194 | File "/home/janne/code/django-postgresql-migrations/venv-django3/lib/python3.8/site-packages/django/db/migrations/executor.py", line 147, in _migrate_all_forwards
|
|---|
| 195 | state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial)
|
|---|
| 196 | File "/home/janne/code/django-postgresql-migrations/venv-django3/lib/python3.8/site-packages/django/db/migrations/executor.py", line 247, in apply_migration
|
|---|
| 197 | migration_recorded = True
|
|---|
| 198 | File "/home/janne/code/django-postgresql-migrations/venv-django3/lib/python3.8/site-packages/django/db/backends/base/schema.py", line 115, in __exit__
|
|---|
| 199 | self.execute(sql)
|
|---|
| 200 | File "/home/janne/code/django-postgresql-migrations/venv-django3/lib/python3.8/site-packages/django/db/backends/base/schema.py", line 142, in execute
|
|---|
| 201 | cursor.execute(sql, params)
|
|---|
| 202 | File "/home/janne/code/django-postgresql-migrations/venv-django3/lib/python3.8/site-packages/django/db/backends/utils.py", line 100, in execute
|
|---|
| 203 | return super().execute(sql, params)
|
|---|
| 204 | File "/home/janne/code/django-postgresql-migrations/venv-django3/lib/python3.8/site-packages/django/db/backends/utils.py", line 68, in execute
|
|---|
| 205 | return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
|
|---|
| 206 | File "/home/janne/code/django-postgresql-migrations/venv-django3/lib/python3.8/site-packages/django/db/backends/utils.py", line 77, in _execute_with_wrappers
|
|---|
| 207 | return executor(sql, params, many, context)
|
|---|
| 208 | File "/home/janne/code/django-postgresql-migrations/venv-django3/lib/python3.8/site-packages/django/db/backends/utils.py", line 86, in _execute
|
|---|
| 209 | return self.cursor.execute(sql, params)
|
|---|
| 210 | File "/home/janne/code/django-postgresql-migrations/venv-django3/lib/python3.8/site-packages/django/db/utils.py", line 90, in __exit__
|
|---|
| 211 | raise dj_exc_value.with_traceback(traceback) from exc_value
|
|---|
| 212 | File "/home/janne/code/django-postgresql-migrations/venv-django3/lib/python3.8/site-packages/django/db/backends/utils.py", line 86, in _execute
|
|---|
| 213 | return self.cursor.execute(sql, params)
|
|---|
| 214 | django.db.utils.OperationalError: cannot CREATE INDEX "app_value" because it has pending trigger events
|
|---|
| 215 |
|
|---|