Created
September 16, 2025 11:24
-
-
Save creimers/d9871733dd51a7c6d4ec09a5332b1e74 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 6. Drop all djangocms_blog tables from the database | |
| Traceback (most recent call last): | |
| File "/srv/.venv/lib/python3.9/site-packages/django/db/backends/utils.py", line 87, in _execute | |
| return self.cursor.execute(sql) | |
| psycopg2.errors.SyntaxError: syntax error at or near "`" | |
| LINE 1: DROP TABLE IF EXISTS `djangocms_blog_authorentriesplugin_aut... | |
| ^ | |
| The above exception was the direct cause of the following exception: | |
| Traceback (most recent call last): | |
| File "/srv/./source/manage.py", line 10, in <module> | |
| execute_from_command_line(sys.argv) | |
| File "/srv/.venv/lib/python3.9/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line | |
| utility.execute() | |
| File "/srv/.venv/lib/python3.9/site-packages/django/core/management/__init__.py", line 436, in execute | |
| self.fetch_command(subcommand).run_from_argv(self.argv) | |
| File "/srv/.venv/lib/python3.9/site-packages/django/core/management/base.py", line 412, in run_from_argv | |
| self.execute(*args, **cmd_options) | |
| File "/srv/.venv/lib/python3.9/site-packages/django/core/management/base.py", line 458, in execute | |
| output = self.handle(*args, **options) | |
| File "/srv/.venv/lib/python3.9/site-packages/django/core/management/base.py", line 106, in wrapper | |
| res = handle_func(*args, **kwargs) | |
| File "/srv/.venv/lib/python3.9/site-packages/django/core/management/commands/migrate.py", line 356, in handle | |
| post_migrate_state = executor.migrate( | |
| File "/srv/.venv/lib/python3.9/site-packages/django/db/migrations/executor.py", line 135, in migrate | |
| state = self._migrate_all_forwards( | |
| File "/srv/.venv/lib/python3.9/site-packages/django/db/migrations/executor.py", line 167, in _migrate_all_forwards | |
| state = self.apply_migration( | |
| File "/srv/.venv/lib/python3.9/site-packages/django/db/migrations/executor.py", line 252, in apply_migration | |
| state = migration.apply(state, schema_editor) | |
| File "/srv/.venv/lib/python3.9/site-packages/django/db/migrations/migration.py", line 132, in apply | |
| operation.database_forwards( | |
| File "/srv/.venv/lib/python3.9/site-packages/django/db/migrations/operations/special.py", line 193, in database_forwards | |
| self.code(from_state.apps, schema_editor) | |
| File "/srv/.venv/lib/python3.9/site-packages/djangocms_stories/migrations/0002_auto_20250618_1556.py", line 212, in migrate_from_blog_to_stories | |
| cursor.execute(f"DROP TABLE IF EXISTS `{table}`;") | |
| File "/srv/.venv/lib/python3.9/site-packages/django/db/backends/utils.py", line 102, in execute | |
| return super().execute(sql, params) | |
| File "/srv/.venv/lib/python3.9/site-packages/django/db/backends/utils.py", line 67, in execute | |
| return self._execute_with_wrappers( | |
| File "/srv/.venv/lib/python3.9/site-packages/django/db/backends/utils.py", line 80, in _execute_with_wrappers | |
| return executor(sql, params, many, context) | |
| File "/srv/.venv/lib/python3.9/site-packages/django/db/backends/utils.py", line 89, in _execute | |
| return self.cursor.execute(sql, params) | |
| File "/srv/.venv/lib/python3.9/site-packages/django/db/utils.py", line 91, in __exit__ | |
| raise dj_exc_value.with_traceback(traceback) from exc_value | |
| File "/srv/.venv/lib/python3.9/site-packages/django/db/backends/utils.py", line 87, in _execute | |
| return self.cursor.execute(sql) | |
| django.db.utils.ProgrammingError: syntax error at or near "`" | |
| LINE 1: DROP TABLE IF EXISTS `djangocms_blog_authorentriesplugin_aut... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment