Mercurial > gemma
annotate schema/updates/1001/01.simplify-get_schema_version.sql @ 4761:a5ff1bbac4dc
Removed SR simplification code.
It never worked as expected and is currently unused.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Sat, 19 Oct 2019 18:13:56 +0200 |
parents | a2921151b193 |
children |
rev | line source |
---|---|
3996
a2921151b193
Schema: Use SQL instead of PLPGSQL for get_schema_version().
Sascha Wilde <wilde@intevation.de>
parents:
diff
changeset
|
1 CREATE OR REPLACE FUNCTION get_schema_version() RETURNS int |
a2921151b193
Schema: Use SQL instead of PLPGSQL for get_schema_version().
Sascha Wilde <wilde@intevation.de>
parents:
diff
changeset
|
2 LANGUAGE sql |
a2921151b193
Schema: Use SQL instead of PLPGSQL for get_schema_version().
Sascha Wilde <wilde@intevation.de>
parents:
diff
changeset
|
3 AS $$ |
a2921151b193
Schema: Use SQL instead of PLPGSQL for get_schema_version().
Sascha Wilde <wilde@intevation.de>
parents:
diff
changeset
|
4 SELECT max(version) FROM gemma_schema_version; |
a2921151b193
Schema: Use SQL instead of PLPGSQL for get_schema_version().
Sascha Wilde <wilde@intevation.de>
parents:
diff
changeset
|
5 $$; |