mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-23 09:24:31 +02:00
Correction: SQLite ALTER TABLE can rename columns
This commit is contained in:
parent
9f59a7a325
commit
1ebffe1dbe
2 changed files with 2 additions and 2 deletions
|
|
@ -920,7 +920,7 @@ You can drop a table or view using the ``.drop()`` method:
|
|||
Transforming a table
|
||||
====================
|
||||
|
||||
The SQLite ``ALTER TABLE`` statement is limited. It can add columns and rename tables, but it cannot rename columns, 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 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 ``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