fix: remove manual transaction on sqlite migration 2 (#468)

This commit is contained in:
Felipe Martin Garcia 2022-08-11 13:40:17 +02:00 committed by GitHub
parent 0246e10dff
commit c8fec2a265
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 4 deletions

View file

@ -1,3 +1 @@
BEGIN TRANSACTION;
ALTER TABLE bookmark DROP COLUMN has_content;
COMMIT;

View file

@ -1,8 +1,6 @@
BEGIN TRANSACTION;
ALTER TABLE bookmark
ADD has_content BOOLEAN DEFAULT FALSE NOT NULL;
UPDATE bookmark
SET has_content = bc.has_content FROM (SELECT docid, content <> '' AS has_content FROM bookmark_content) AS bc
WHERE bookmark.id = bc.docid;
COMMIT;