diff --git a/sql/alter_tabname_add_pkey.sql b/sql/alter_tabname_add_pkey.sql
new file mode 100644
index 0000000000000000000000000000000000000000..68b598055fb97c7182d285ce89a5a4138ca846b8
--- /dev/null
+++ b/sql/alter_tabname_add_pkey.sql
@@ -0,0 +1 @@
+ALTER TABLE %(tabname)s ADD PRIMARY KEY (%(pkey)s);
