We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b0e4224 commit 46ba50cCopy full SHA for 46ba50c
1 file changed
WebApi/Scripts/Script_2025_01_14T19_30_RemoveBadPostId.cs
@@ -0,0 +1,22 @@
1
+using FruityFoundation.DataAccess.Abstractions;
2
+
3
+namespace WebApi.Scripts;
4
5
+/// <summary>
6
+/// Script_2025_01_14T19_30_RemoveBadPostId
7
+/// </summary>
8
+public class Script_2025_01_14T19_30_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 = '1hzuql7';
17
+ DELETE FROM link_queue WHERE reddit_post_id = '1hzuql7';
18
+ DELETE FROM links WHERE reddit_post_id = '1hzuql7';
19
+ COMMIT;
20
+ """);
21
+ }
22
+}
0 commit comments