diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-11-30 10:10:27 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-11-30 10:11:28 +0100 |
| commit | 6e2d9f0aa895b34d5d9c06dddc33d06326e52012 (patch) | |
| tree | 9db1e3cd4f2e07f8bf77f6530a448c608e3e25eb /django/db/backends/sqlite3/schema.py | |
| parent | 5b698cbcf15b29c194b4a23d179959e17103645b (diff) | |
[4.2.x] Fixed #35006 -- Fixed migrations crash when altering Meta.db_table_comment on SQLite.
Thanks Юрий for the report.
Regression in 78f163a4fb3937aca2e71786fbdd51a0ef39629e.
Backport of 37fc832a54ad37e75a898a2c8f9ab0820617c4af from main
Diffstat (limited to 'django/db/backends/sqlite3/schema.py')
| -rw-r--r-- | django/db/backends/sqlite3/schema.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/django/db/backends/sqlite3/schema.py b/django/db/backends/sqlite3/schema.py index 89867b6623..8c41f3c46d 100644 --- a/django/db/backends/sqlite3/schema.py +++ b/django/db/backends/sqlite3/schema.py @@ -20,6 +20,8 @@ class DatabaseSchemaEditor(BaseDatabaseSchemaEditor): sql_delete_column = "ALTER TABLE %(table)s DROP COLUMN %(column)s" sql_create_unique = "CREATE UNIQUE INDEX %(name)s ON %(table)s (%(columns)s)" sql_delete_unique = "DROP INDEX %(name)s" + sql_alter_table_comment = None + sql_alter_column_comment = None def __enter__(self): # Some SQLite schema alterations need foreign key constraints to be |
