aboutsummaryrefslogtreecommitdiffstats
path: root/maintenance/postgres/archives/patch-user_properties.sql
diff options
context:
space:
mode:
Diffstat (limited to 'maintenance/postgres/archives/patch-user_properties.sql')
-rw-r--r--maintenance/postgres/archives/patch-user_properties.sql8
1 files changed, 8 insertions, 0 deletions
diff --git a/maintenance/postgres/archives/patch-user_properties.sql b/maintenance/postgres/archives/patch-user_properties.sql
new file mode 100644
index 000000000000..4c930c80c87c
--- /dev/null
+++ b/maintenance/postgres/archives/patch-user_properties.sql
@@ -0,0 +1,8 @@
+CREATE TABLE user_properties(
+ up_user BIGINT NOT NULL,
+ up_property TEXT NOT NULL,
+ up_value TEXT
+);
+
+CREATE UNIQUE INDEX user_properties_user_property on user_properties (up_user,up_property);
+CREATE INDEX user_properties_property on user_properties (up_property);