misc/migration/2.45.0_Any.py
branchstable
changeset 3315 59220b704562
parent 3298 caef98aa4a98
parent 3314 cfa77453e742
child 3317 42ca81d2e805
child 3318 5b47b9f09bca
equal deleted inserted replaced
3298:caef98aa4a98 3315:59220b704562
     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')