clone basic database structure from zhquiz

This commit is contained in:
polv committed 2021-10-05 23:03:29 +07:00
1 parent 6be2365fc6
commit 11d44ccfd3
18 files changed
+1594

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
CREATE FUNCTION array_distinct(anyarray) RETURNS anyarray AS $f$
SELECT array_agg(DISTINCT x) FROM unnest($1) t(x);
$f$ LANGUAGE SQL IMMUTABLE;