equal
deleted
inserted
replaced
1 # following functions have been renamed, but keep old definition for bw compat |
|
2 """ |
|
3 |
|
4 :organization: Logilab |
|
5 :copyright: 2001-2009 LOGILAB S.A. (Paris, FRANCE), license is LGPL v2. |
|
6 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr |
|
7 :license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses |
|
8 """ |
|
9 sql('''CREATE AGGREGATE group_concat ( |
|
10 basetype = anyelement, |
|
11 sfunc = array_append, |
|
12 stype = anyarray, |
|
13 finalfunc = comma_join, |
|
14 initcond = '{}' |
|
15 )''') |
|
16 |
|
17 sql('''CREATE FUNCTION text_limit_size (fulltext text, maxsize integer) RETURNS text AS $$ |
|
18 BEGIN |
|
19 RETURN limit_size(fulltext, 'text/plain', maxsize); |
|
20 END |
|
21 $$ LANGUAGE plpgsql; |
|
22 ''') |
|
23 |
|
24 |
|
25 synchronize_rschema('bookmarked_by') |
|