Compare commits

..

No commits in common. "4c639df91d9db95f673e3166bd407ad7f542eba1" and "4039a905aeb57f0f7f0e1dc20093b70abd62ebb9" have entirely different histories.

2 changed files with 3 additions and 6 deletions

View File

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

View File

@ -286,13 +286,10 @@ def parse_column_definition(ps):
ps2.ast = []
ps2.skip_whitespace_and_comments()
sqltypes = (
"integer", "int", "serial", "bigint",
"int", "integer", "serial",
"boolean",
"text", "character varying",
"date", "timestamp with time zone", "timestamptz",
"time",
"inet",
"double precision", "float8", "real", "float4",
"date", "timestamp with time zone", "timestamptz"
)
pattern = "(" + "|".join(sqltypes) + ")" + r"([ \t]+(default .*|not null\b|primary key\b|unique\b|references \w+\b))*"
m = ps2.match(pattern)