Skip to content

Commit

Permalink
merge branch.sql
Browse files Browse the repository at this point in the history
  • Loading branch information
Changaco committed Sep 3, 2023
1 parent 95db606 commit 102a773
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
5 changes: 0 additions & 5 deletions sql/branch.sql

This file was deleted.

5 changes: 5 additions & 0 deletions sql/migrations.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3415,3 +3415,8 @@ UPDATE payment_accounts AS a

-- migration #168
ALTER TABLE exchange_routes ADD COLUMN is_default_for currency;

-- migration #169
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_%';
4 changes: 3 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', '168'::jsonb);
INSERT INTO db_meta (key, value) VALUES ('schema_version', '169'::jsonb);


-- app configuration
Expand Down Expand Up @@ -198,6 +198,7 @@ CREATE TABLE elsewhere
, info_fetched_at timestamptz NOT NULL DEFAULT current_timestamp
, description text
, missing_since timestamptz
, last_fetch_attempt timestamptz
, CONSTRAINT user_id_chk CHECK (user_id IS NOT NULL OR domain <> '' AND user_name IS NOT NULL)
);

Expand Down Expand Up @@ -235,6 +236,7 @@ CREATE TABLE repositories
, info_fetched_at timestamptz NOT NULL DEFAULT now()
, participant bigint REFERENCES participants
, show_on_profile boolean NOT NULL DEFAULT FALSE
, last_fetch_attempt timestamptz
, UNIQUE (platform, remote_id)
, UNIQUE (platform, slug)
);
Expand Down

0 comments on commit 102a773

Please sign in to comment.