diff --git a/src/database/memory.sql b/src/database/memory.sql
index 8b98cfeff9c4739b5ef2d8897745818c58ce0eaf..1de179719a4acd1d341cc23b7c960ada656af867 100644
--- a/src/database/memory.sql
+++ b/src/database/memory.sql
@@ -34,11 +34,11 @@ CREATE TABLE IF NOT EXISTS queue_tmp
 
 -- Memory replica of the kara cache
 CREATE TABLE IF NOT EXISTS kara_cache
-  ( kara_id     INTEGER NOT NULL    -- Valid kara id, can't foreign key as the disk is not loaded
-  , mtime       INTEGER NOT NULL    -- Last modification date
-  , duration    INTEGER NOT NULL    -- Duration of the kara
-  , file_path   TEXT    NOT NULL    -- Cached filepath
-  , magic_error INTEGER NOT NULL    -- 1 if the mkv is valid, 0 otherwise
+  ( kara_id     INTEGER NOT NULL            -- Valid kara id, can't foreign key as the disk is not loaded
+  , mtime       INTEGER NOT NULL DEFAULT 0  -- Last modification date
+  , duration    INTEGER NOT NULL DEFAULT 0  -- Duration of the kara
+  , file_path   TEXT    NOT NULL            -- Cached filepath
+  , magic_error INTEGER NOT NULL DEFAULT 0  -- 1 if the mkv is valid, 0 otherwise
   );
 
 -- Used to store the content of the ini configuration file.