misc/migration/2.45.0_Any.py
changeset 0 b97547f5f1fa
child 1977 606923dff11b
equal deleted inserted replaced
-1:000000000000 0:b97547f5f1fa
       
     1 # following functions have been renamed, but keep old definition for bw compat
       
     2 sql('''CREATE AGGREGATE group_concat (
       
     3   basetype = anyelement,
       
     4   sfunc = array_append,
       
     5   stype = anyarray,
       
     6   finalfunc = comma_join,
       
     7   initcond = '{}'
       
     8 )''')
       
     9 
       
    10 sql('''CREATE FUNCTION text_limit_size (fulltext text, maxsize integer) RETURNS text AS $$
       
    11 BEGIN
       
    12     RETURN limit_size(fulltext, 'text/plain', maxsize);
       
    13 END
       
    14 $$ LANGUAGE plpgsql;
       
    15 ''')
       
    16 
       
    17 
       
    18 synchronize_rschema('bookmarked_by')