From 4a3ec24de6d96282d63927d92eb9ef280d5c4e4a Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 22 Dec 2020 15:45:25 +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 ac8f358..1453987 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}}