Compare commits
No commits in common. "4c639df91d9db95f673e3166bd407ad7f542eba1" and "4039a905aeb57f0f7f0e1dc20093b70abd62ebb9" have entirely different histories.
4c639df91d
...
4039a905ae
|
@ -1,6 +1,6 @@
|
||||||
[metadata]
|
[metadata]
|
||||||
name = ProcruSQL
|
name = ProcruSQL
|
||||||
version = 0.0.10
|
version = 0.0.9
|
||||||
author = Peter J. Holzer
|
author = Peter J. Holzer
|
||||||
author_email = hjp@hjp.at
|
author_email = hjp@hjp.at
|
||||||
description = Make a database fit its description
|
description = Make a database fit its description
|
||||||
|
|
|
@ -286,13 +286,10 @@ def parse_column_definition(ps):
|
||||||
ps2.ast = []
|
ps2.ast = []
|
||||||
ps2.skip_whitespace_and_comments()
|
ps2.skip_whitespace_and_comments()
|
||||||
sqltypes = (
|
sqltypes = (
|
||||||
"integer", "int", "serial", "bigint",
|
"int", "integer", "serial",
|
||||||
"boolean",
|
"boolean",
|
||||||
"text", "character varying",
|
"text", "character varying",
|
||||||
"date", "timestamp with time zone", "timestamptz",
|
"date", "timestamp with time zone", "timestamptz"
|
||||||
"time",
|
|
||||||
"inet",
|
|
||||||
"double precision", "float8", "real", "float4",
|
|
||||||
)
|
)
|
||||||
pattern = "(" + "|".join(sqltypes) + ")" + r"([ \t]+(default .*|not null\b|primary key\b|unique\b|references \w+\b))*"
|
pattern = "(" + "|".join(sqltypes) + ")" + r"([ \t]+(default .*|not null\b|primary key\b|unique\b|references \w+\b))*"
|
||||||
m = ps2.match(pattern)
|
m = ps2.match(pattern)
|
||||||
|
|
Loading…
Reference in New Issue