Accept additional SQL type time
This commit is contained in:
parent
4039a905ae
commit
b64ec8b8b8
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue