diff --git a/sql/branch.sql b/sql/branch.sql deleted file mode 100644 index cd4060a71..000000000 --- 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 c64b901fe..1832f29f1 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 d67ba445f..b78b5274a 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 997882954..513325e11 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