Co-authored-by: Michael Hoennig <michael@hoennig.de> Reviewed-on: #29 Reviewed-by: Timotheus Pokorra <timotheus.pokorra@hostsharing.net>
13 lines
399 B
PL/PgSQL
13 lines
399 B
PL/PgSQL
--liquibase formatted sql
|
|
|
|
|
|
-- ============================================================================
|
|
-- NUMERIC-HASH-FUNCTIONS
|
|
--changeset numeric-hash-functions:1 endDelimiter:--//
|
|
-- ----------------------------------------------------------------------------
|
|
|
|
create function bigIntHash(text) returns bigint as $$
|
|
select ('x'||substr(md5($1),1,16))::bit(64)::bigint;
|
|
$$ language sql;
|
|
--//
|