mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-23 01:14:31 +02:00
SQLite can drop columns now
It gained that ability in 3.35.0 in 2021-03-12: https://www.sqlite.org/changes.html#version_3_35_0
This commit is contained in:
parent
8d51ae48ab
commit
b3efb29212
2 changed files with 2 additions and 2 deletions
|
|
@ -1247,7 +1247,7 @@ Pass ``ignore=True`` if you want to ignore the error caused by the table or view
|
|||
Transforming a table
|
||||
====================
|
||||
|
||||
The SQLite ``ALTER TABLE`` statement is limited. It can add columns and rename tables, but it cannot drop columns, change column types, change ``NOT NULL`` status or change the primary key for a table.
|
||||
The SQLite ``ALTER TABLE`` statement is limited. It can add and drop columns and rename tables, but it cannot change column types, change ``NOT NULL`` status or change the primary key for a table.
|
||||
|
||||
The ``table.transform()`` method can do all of these things, by implementing a multi-step pattern `described in the SQLite documentation <https://www.sqlite.org/lang_altertable.html#otheralter>`__:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue