This commit is contained in:
2025-11-30 20:44:57 +01:00
parent a494370ded
commit aef1c99d0c
3 changed files with 73 additions and 7 deletions

View File

@@ -8,6 +8,8 @@
--show shared_preload_libraries;
alter database iut SET session_preload_libraries = 'anon';
create schema if not exists ext;
create extension if not exists pgcrypto schema ext;
create extension if not exists tablefunc;
@@ -144,6 +146,9 @@ select 'MXN', date, MXN from eurofxref;*/
insert into exchange_rate
select 'NOK', date, NOK from eurofxref;
insert into exchange_rate
select 'SEK', date, NOK from eurofxref;
create or replace function latest_exchange_rate (
p_code text,
p_date date