Skip to content

Commit

Permalink
Remove transaction during feeds search DB migration
Browse files Browse the repository at this point in the history
  • Loading branch information
msasikanth committed Oct 29, 2023
1 parent 136e7c3 commit bc2cd17
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions shared/src/commonMain/sqldelight/migrations/5.sqm
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
BEGIN TRANSACTION;

CREATE VIRTUAL TABLE IF NOT EXISTS feed_search USING FTS5(
name TEXT NOT NULL,
link TEXT NOT NULL PRIMARY KEY UNINDEXED,
Expand All @@ -8,8 +6,6 @@ CREATE VIRTUAL TABLE IF NOT EXISTS feed_search USING FTS5(

INSERT INTO feed_search SELECT name, link FROM feed;

COMMIT;

CREATE TRIGGER IF NOT EXISTS
feed_search_fts_BEFORE_DELETE
BEFORE DELETE ON feed
Expand Down

0 comments on commit bc2cd17

Please sign in to comment.