Skip to content

Commit

Permalink
merge branch.sql
Browse files Browse the repository at this point in the history
  • Loading branch information
Changaco committed Jan 28, 2025
1 parent 3e0ecc0 commit d3219e6
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
7 changes: 0 additions & 7 deletions sql/branch.sql

This file was deleted.

9 changes: 9 additions & 0 deletions sql/migrations.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3598,3 +3598,12 @@ ALTER TYPE currency ADD VALUE IF NOT EXISTS 'XPF';
ALTER TYPE currency ADD VALUE IF NOT EXISTS 'YER';
ALTER TYPE currency ADD VALUE IF NOT EXISTS 'ZMW';
INSERT INTO app_conf VALUES ('fixer_access_key', 'null'::jsonb) ON CONFLICT (key) DO NOTHING;

-- migration #181
ALTER TABLE exchange_routes
ADD COLUMN brand text,
ADD COLUMN last4 text,
ADD COLUMN fingerprint text,
ADD COLUMN owner_name text,
ADD COLUMN expiration_date date,
ADD COLUMN mandate_reference text;
8 changes: 7 additions & 1 deletion sql/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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', '180'::jsonb);
INSERT INTO db_meta (key, value) VALUES ('schema_version', '181'::jsonb);


-- app configuration
Expand Down Expand Up @@ -427,6 +427,12 @@ CREATE TABLE exchange_routes
, status route_status NOT NULL
, is_default boolean
, is_default_for currency
, brand text
, last4 text
, fingerprint text
, owner_name text
, expiration_date date
, mandate_reference text
, UNIQUE (participant, network, address)
);

Expand Down

0 comments on commit d3219e6

Please sign in to comment.