Skip to content

Commit 0b3111d

Browse files
committed
Add component and project tags
1 parent d9f132f commit 0b3111d

2 files changed

Lines changed: 24 additions & 0 deletions

File tree

  • moped-database/migrations/default/1767998512551_add_exclude_stats_tags
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-- If we delete the tags in the future, we will soft delete and leave existing data intact
2+
SELECT 0;
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
-- Add project and component tags to exclude from Moped <> VZ crash statistics
2+
INSERT INTO moped_component_tags (type, name, slug)
3+
SELECT
4+
'Exclude from Crash Statistics',
5+
NULL,
6+
'exclude_from_crash_statistics'
7+
WHERE NOT EXISTS (
8+
SELECT 1 FROM moped_component_tags
9+
WHERE type = 'Exclude from Crash Statistics'
10+
AND name IS NULL
11+
);
12+
13+
INSERT INTO moped_tags (name, type, slug)
14+
SELECT
15+
'Exclude from Crash Statistics',
16+
'Other',
17+
'exclude_from_crash_statistics'
18+
WHERE NOT EXISTS (
19+
SELECT 1 FROM moped_tags
20+
WHERE name = 'Exclude from Crash Statistics'
21+
AND type = 'Other'
22+
);

0 commit comments

Comments
 (0)