File tree Expand file tree Collapse file tree
moped-database/migrations/default/1767998512551_add_exclude_stats_tags Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ -- If we delete the tags in the future, we will soft delete and leave existing data intact
2+ SELECT 0 ;
Original file line number Diff line number Diff line change 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+ );
You can’t perform that action at this time.
0 commit comments