-
Notifications
You must be signed in to change notification settings - Fork 431
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2376 from gobitfly/BIDS-2258/improve-charts
(BIDS-2258) use chart_series for some consensus-charts aswell
- Loading branch information
Showing
6 changed files
with
402 additions
and
353 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
db/migrations/20230629144437_add_graffiti_stats_tables.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
-- +goose Up | ||
-- +goose StatementBegin | ||
SELECT 'up SQL query - add graffiti_stats tables'; | ||
CREATE TABLE IF NOT EXISTS | ||
graffiti_stats ( | ||
day INTEGER NOT NULL, | ||
graffiti BYTEA NOT NULL, | ||
graffiti_text TEXT NOT NULL, | ||
count INTEGER NOT NULL, | ||
proposer_count INTEGER NOT NULL, | ||
PRIMARY KEY (graffiti, day) | ||
); | ||
-- +goose StatementEnd | ||
|
||
-- +goose Down | ||
-- +goose StatementBegin | ||
SELECT 'down SQL query - remove graffiti_stats tables'; | ||
DROP TABLE IF EXISTS graffiti_stats; | ||
-- +goose StatementEnd |
20 changes: 20 additions & 0 deletions
20
db/migrations/20230629144438_add_graffiti_stats_indices.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
-- +goose NO TRANSACTION | ||
-- +goose Up | ||
SELECT 'up SQL query - add graffiti_stats indices'; | ||
|
||
-- +goose StatementBegin | ||
CREATE INDEX CONCURRENTLY IF NOT EXISTS idx_graffiti_stats_day ON graffiti_stats (day); | ||
-- +goose StatementEnd | ||
-- +goose StatementBegin | ||
CREATE INDEX CONCURRENTLY IF NOT EXISTS idx_graffiti_stats_day_graffiti_text ON graffiti_stats USING gin (graffiti_text gin_trgm_ops); | ||
-- +goose StatementEnd | ||
|
||
-- +goose Down | ||
SELECT 'down SQL query - remove graffiti_stats indices'; | ||
|
||
-- +goose StatementBegin | ||
DROP INDEX CONCURRENTLY IF EXISTS idx_graffiti_stats_day; | ||
-- +goose StatementEnd | ||
-- +goose StatementBegin | ||
DROP INDEX CONCURRENTLY IF EXISTS idx_graffiti_stats_day_graffiti_text; | ||
-- +goose StatementEnd |
Oops, something went wrong.