Module Expr Str ImportFrom alias Assign NameStore Str Assign NameStore Str FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list
N/A N/A 
Add function to convert string to bucket

Revision ID: 4ec0adada10
Revises: 9177113533
Create Date: 2015-09-06 19:32:50.438462
 alembic op N/A revision 4ec0adada10 N/A down_revision 9177113533 upgrade N/A N/A N/A N/A N/A N/A N/A op execute 
        CREATE FUNCTION sitemap_bucket(text) RETURNS text AS $$
                SELECT substring(
                    encode(digest($1, 'sha512'), 'hex')
                    from 1
                    for 1
                )
            $$
            LANGUAGE SQL
            IMMUTABLE
            RETURNS NULL ON NULL INPUT;
     N/A downgrade N/A N/A N/A N/A N/A N/A N/A op execute DROP FUNCTION sitemap_bucket(text) N/A