aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/examples/sql/pgsql.propertystorage.sql
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/examples/sql/pgsql.propertystorage.sql')
-rw-r--r--vendor/examples/sql/pgsql.propertystorage.sql13
1 files changed, 13 insertions, 0 deletions
diff --git a/vendor/examples/sql/pgsql.propertystorage.sql b/vendor/examples/sql/pgsql.propertystorage.sql
new file mode 100644
index 000000000..d1463faae
--- /dev/null
+++ b/vendor/examples/sql/pgsql.propertystorage.sql
@@ -0,0 +1,13 @@
+CREATE TABLE propertystorage (
+ id SERIAL NOT NULL,
+ path VARCHAR(1024) NOT NULL,
+ name VARCHAR(100) NOT NULL,
+ valuetype INT,
+ value BYTEA
+);
+
+ALTER TABLE ONLY propertystorage
+ ADD CONSTRAINT propertystorage_pkey PRIMARY KEY (id);
+
+CREATE UNIQUE INDEX propertystorage_ukey
+ ON propertystorage (path, name);