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