Skip to content

Commit

Permalink
merge branch.sql
Browse files Browse the repository at this point in the history
  • Loading branch information
Changaco committed Dec 10, 2024
1 parent ecaa8c1 commit 10a22be
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion sql/branch.sql

This file was deleted.

3 changes: 3 additions & 0 deletions sql/migrations.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3491,3 +3491,6 @@ CREATE INDEX public_name_trgm_idx ON participants

-- migration #178
UPDATE exchange_routes SET is_default_for = 'EUR', is_default = null WHERE network = 'stripe-sdd' AND is_default;

-- migration #179
ALTER TABLE user_secrets ADD COLUMN latest_use date;
3 changes: 2 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', '178'::jsonb);
INSERT INTO db_meta (key, value) VALUES ('schema_version', '179'::jsonb);


-- app configuration
Expand Down Expand Up @@ -1100,6 +1100,7 @@ CREATE TABLE user_secrets
, id int NOT NULL
, secret text NOT NULL
, mtime timestamptz NOT NULL DEFAULT current_timestamp
, latest_use date
, UNIQUE (participant, id)
);

Expand Down

0 comments on commit 10a22be

Please sign in to comment.