Mercurial > gemma
view schema/updates/0000/01.add_schema_version.sql @ 4687:f73868037365
morphology: do correct clipping of classbreak heights based on z range of model.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Wed, 16 Oct 2019 13:02:08 +0200 |
parents | 7b7c324b318f |
children |
line wrap: on
line source
CREATE TABLE gemma_schema_version ( version int PRIMARY KEY, update_date timestamp with time zone NOT NULL DEFAULT CURRENT_TIMESTAMP ); CREATE OR REPLACE FUNCTION get_schema_version() RETURNS int LANGUAGE plpgsql AS $$ BEGIN RETURN ( SELECT max(version) FROM gemma_schema_version ); END; $$;