mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-08-03 07:54:22 +02:00
add-column col_type now optional, defaults to str
This commit is contained in:
parent
557dc3f9a7
commit
3cab079d3e
6 changed files with 18 additions and 8 deletions
|
|
@ -145,6 +145,11 @@ def test_create_error_if_invalid_foreign_keys(fresh_db):
|
|||
),
|
||||
("float", "FLOAT", "CREATE TABLE [dogs] ( [name] TEXT , [float] FLOAT)"),
|
||||
("blob", "blob", "CREATE TABLE [dogs] ( [name] TEXT , [blob] BLOB)"),
|
||||
(
|
||||
"default_str",
|
||||
None,
|
||||
"CREATE TABLE [dogs] ( [name] TEXT , [default_str] TEXT)",
|
||||
),
|
||||
),
|
||||
)
|
||||
def test_add_column(fresh_db, col_name, col_type, expected_schema):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue