File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ using FruityFoundation . DataAccess . Abstractions ;
2+
3+ namespace WebApi . Scripts ;
4+
5+ /// <summary>
6+ /// Script_2024_11_21T13_04_RemoveBadPostId
7+ /// </summary>
8+ public class Script_2024_11_21T13_04_RemoveBadPostId : IDbMaintenanceScript
9+ {
10+ /// <inheritdoc />
11+ public async Task Run ( IDatabaseConnection < ReadWrite > dbConnection )
12+ {
13+ await dbConnection . Execute (
14+ """
15+ BEGIN TRANSACTION;
16+ DELETE FROM reddit_comments WHERE reddit_post_id = '1gwjh0b';
17+ DELETE FROM link_queue WHERE reddit_post_id = '1gwjh0b';
18+ DELETE FROM links WHERE reddit_post_id = '1gwjh0b';
19+ COMMIT;
20+ """ ) ;
21+
22+ await dbConnection . Execute (
23+ """
24+ BEGIN TRANSACTION;
25+ DELETE FROM reddit_comments WHERE reddit_post_id = '1gg50tl';
26+ DELETE FROM link_queue WHERE reddit_post_id = '1gg50tl';
27+ DELETE FROM links WHERE reddit_post_id = '1gg50tl';
28+ COMMIT;
29+ """ ) ;
30+ }
31+ }
You can’t perform that action at this time.
0 commit comments