"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "sql.c" between
minidlna-1.2.0.tar.gz and minidlna-1.2.1.tar.gz

About: ReadyMedia (formerly known as MiniDLNA) is a simple media server software, with the aim of being fully compliant with DLNA/UPnP-AV clients.

sql.c  (minidlna-1.2.0):sql.c  (minidlna-1.2.1)
skipping to change at line 285 skipping to change at line 285
return -1; return -1;
if (db_vers < 9) if (db_vers < 9)
return db_vers; return db_vers;
if (db_vers < 10) if (db_vers < 10)
{ {
DPRINTF(E_WARN, L_DB_SQL, "Updating DB version to v%d\n", 10); DPRINTF(E_WARN, L_DB_SQL, "Updating DB version to v%d\n", 10);
ret = sql_exec(db, "ALTER TABLE BOOKMARKS ADD WATCH_COUNT INTEGER "); ret = sql_exec(db, "ALTER TABLE BOOKMARKS ADD WATCH_COUNT INTEGER ");
if (ret != SQLITE_OK) if (ret != SQLITE_OK)
return 9; return 9;
} }
if (db_vers < 11)
{
DPRINTF(E_WARN, L_DB_SQL, "Updating DB version to v%d\n", 11);
ret = sql_exec(db, "ALTER TABLE PLAYLISTS ADD TIMESTAMP INTEGER D
EFAULT 1");
if (ret != SQLITE_OK)
return 10;
}
sql_exec(db, "PRAGMA user_version = %d", DB_VERSION); sql_exec(db, "PRAGMA user_version = %d", DB_VERSION);
return 0; return 0;
} }
 End of changes. 1 change blocks. 
0 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)