Accept additional SQL type time

This commit is contained in:
Peter J. Holzer 2022-11-05 10:36:43 +01:00
parent 4039a905ae
commit b64ec8b8b8
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
[metadata]
name = ProcruSQL
version = 0.0.9
version = 0.0.10
author = Peter J. Holzer
author_email = hjp@hjp.at
description = Make a database fit its description

View File

@ -289,7 +289,8 @@ def parse_column_definition(ps):
"int", "integer", "serial",
"boolean",
"text", "character varying",
"date", "timestamp with time zone", "timestamptz"
"date", "timestamp with time zone", "timestamptz",
"time",
)
pattern = "(" + "|".join(sqltypes) + ")" + r"([ \t]+(default .*|not null\b|primary key\b|unique\b|references \w+\b))*"
m = ps2.match(pattern)