From a5153f53752999aecd19911d270f17a5ef649776 Mon Sep 17 00:00:00 2001 From: TobiGr Date: Tue, 31 Mar 2020 00:20:13 +0200 Subject: [PATCH] Improve database migration SQL statement --- app/src/main/java/org/schabi/newpipe/database/Migrations.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/database/Migrations.java b/app/src/main/java/org/schabi/newpipe/database/Migrations.java index c208853ce..afefb2fd1 100644 --- a/app/src/main/java/org/schabi/newpipe/database/Migrations.java +++ b/app/src/main/java/org/schabi/newpipe/database/Migrations.java @@ -85,8 +85,8 @@ public class Migrations { "duration, uploader, thumbnail_url, view_count," + "textual_upload_date, upload_date, is_upload_date_approximation) " + - "SELECT uid, service_id, url, IFNULL(title, \"\"), IFNULL(stream_type, \"VIDEO_STREAM\")," + - "IFNULL(duration, 0), IFNULL(uploader, \"\"), IFNULL(thumbnail_url, \"\"), NULL," + + "SELECT uid, service_id, url, ifnull(title, ''), ifnull(stream_type, 'VIDEO_STREAM')," + + "ifnull(duration, 0), ifnull(uploader, ''), ifnull(thumbnail_url, ''), NULL," + "NULL, NULL, NULL " + "FROM streams " +