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}}