From 87a56dd296b1116ded283d957ee6a52706af4881 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 22 Dec 2020 15:56:53 +0800 Subject: [PATCH] bugfix --- sqlor/ddl_template_postgresql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqlor/ddl_template_postgresql.py b/sqlor/ddl_template_postgresql.py index 1453987..4d73127 100755 --- a/sqlor/ddl_template_postgresql.py +++ b/sqlor/ddl_template_postgresql.py @@ -23,7 +23,7 @@ NOT NULL {%- endif -%} {% endmacro %} {% macro primary() %} -,primary key({{','.join(summary[0].primary)}}) +,PRIMARY KEY({{','.join(summary[0].primary)}}) {% endmacro %} DROP TABLE IF EXISTS {{summary[0].name}}; CREATE TABLE {{summary[0].name}}