Commit a146ea89 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

Media: Fix v33 schema

While NON NULL seems to be accepted by sqlite, it appears to be silently
converted to NOT NULL, which makes the db consistency checks fail later
on
parent e48fa48f
Pipeline #147243 passed with stages
in 4 minutes and 55 seconds
...@@ -1612,7 +1612,7 @@ std::string Media::schema( const std::string& tableName, uint32_t dbModel ) ...@@ -1612,7 +1612,7 @@ std::string Media::schema( const std::string& tableName, uint32_t dbModel )
"duration INTEGER DEFAULT -1," "duration INTEGER DEFAULT -1,"
"last_position REAL DEFAULT -1," "last_position REAL DEFAULT -1,"
"last_time INTEGER DEFAULT -1," "last_time INTEGER DEFAULT -1,"
"play_count UNSIGNED INTEGER NON NULL DEFAULT 0," "play_count UNSIGNED INTEGER NOT NULL DEFAULT 0,"
"last_played_date UNSIGNED INTEGER," "last_played_date UNSIGNED INTEGER,"
"insertion_date UNSIGNED INTEGER," "insertion_date UNSIGNED INTEGER,"
"release_date UNSIGNED INTEGER," "release_date UNSIGNED INTEGER,"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment