aboutsummaryrefslogtreecommitdiffstats
path: root/sql/postgres/patch-user_properties-pk.sql
diff options
context:
space:
mode:
Diffstat (limited to 'sql/postgres/patch-user_properties-pk.sql')
-rw-r--r--sql/postgres/patch-user_properties-pk.sql3
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/postgres/patch-user_properties-pk.sql b/sql/postgres/patch-user_properties-pk.sql
new file mode 100644
index 000000000000..c6085947de08
--- /dev/null
+++ b/sql/postgres/patch-user_properties-pk.sql
@@ -0,0 +1,3 @@
+DROP INDEX IF EXISTS user_properties_user_property;
+ALTER TABLE user_properties
+ ADD PRIMARY KEY (up_user, up_property);