add-column col_type now optional, defaults to str

This commit is contained in:
Simon Willison 2019-02-24 14:24:00 -08:00
commit 3cab079d3e
6 changed files with 18 additions and 8 deletions

View file

@ -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):