You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/cli.rst
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2310,7 +2310,14 @@ You can add a column using the ``add-column`` command:
2310
2310
2311
2311
sqlite-utils add-column mydb.db mytable nameofcolumn text
2312
2312
2313
-
The last argument here is the type of the column to be created. You can use one of ``text``, ``integer``, ``float`` or ``blob``. If you leave it off, ``text`` will be used.
2313
+
The last argument here is the type of the column to be created. This can be one of:
2314
+
2315
+
- ``text`` or ``str``
2316
+
- ``integer`` or ``int``
2317
+
- ``float``
2318
+
- ``blob`` or ``bytes``
2319
+
2320
+
This argument is optional and defaults to ``text``.
2314
2321
2315
2322
You can add a column that is a foreign key reference to another table using the ``--fk`` option:
0 commit comments