From 75b01235b20aa9dce996f37d3a2c7ba5410fc01f Mon Sep 17 00:00:00 2001 From: Changaco Date: Mon, 16 Oct 2023 09:39:08 +0200 Subject: [PATCH] merge branch.sql --- sql/branch.sql | 1 - sql/composites.sql | 5 +++++ sql/migrations.sql | 3 +++ sql/schema.sql | 2 +- 4 files changed, 9 insertions(+), 2 deletions(-) delete mode 100644 sql/branch.sql diff --git a/sql/branch.sql b/sql/branch.sql deleted file mode 100644 index cd4060a71b..0000000000 --- a/sql/branch.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TYPE localized_string AS (string text, lang text); diff --git a/sql/composites.sql b/sql/composites.sql index c64b901fee..1832f29f11 100644 --- a/sql/composites.sql +++ b/sql/composites.sql @@ -34,3 +34,8 @@ $$ LANGUAGE SQL; CREATE CAST (elsewhere AS elsewhere_with_participant) WITH FUNCTION load_participant_for_elsewhere(elsewhere); + + +-- * LocalizedString + +CREATE TYPE localized_string AS (string text, lang text); diff --git a/sql/migrations.sql b/sql/migrations.sql index d67ba445ff..b78b5274a0 100644 --- a/sql/migrations.sql +++ b/sql/migrations.sql @@ -3420,3 +3420,6 @@ ALTER TABLE exchange_routes ADD COLUMN is_default_for currency; ALTER TABLE elsewhere ADD COLUMN last_fetch_attempt timestamptz; ALTER TABLE repositories ADD COLUMN last_fetch_attempt timestamptz; DELETE FROM rate_limiting WHERE key LIKE 'refetch_%'; + +-- migration #170 +CREATE TYPE localized_string AS (string text, lang text); diff --git a/sql/schema.sql b/sql/schema.sql index 997882954d..513325e11d 100644 --- a/sql/schema.sql +++ b/sql/schema.sql @@ -14,7 +14,7 @@ COMMENT ON EXTENSION pg_stat_statements IS 'track execution statistics of all SQ -- database metadata CREATE TABLE db_meta (key text PRIMARY KEY, value jsonb); -INSERT INTO db_meta (key, value) VALUES ('schema_version', '169'::jsonb); +INSERT INTO db_meta (key, value) VALUES ('schema_version', '170'::jsonb); -- app configuration