139
139
m_pDS->exec("CREATE TABLE actors ( idActor integer primary key, strActor text, strThumb text )\n");
141
141
CLog::Log(LOGINFO, "create path table");
142
m_pDS->exec("CREATE TABLE path ( idPath integer primary key, strPath text, strContent text, strScraper text, strHash text, scanRecursive integer, useFolderNames bool, strSettings text, noUpdate bool)\n");
142
m_pDS->exec("CREATE TABLE path ( idPath integer primary key, strPath varchar(512), strContent text, strScraper text, strHash text, scanRecursive integer, useFolderNames bool, strSettings text, noUpdate bool)\n");
143
143
m_pDS->exec("CREATE UNIQUE INDEX ix_path ON path ( strPath )\n");
145
145
CLog::Log(LOGINFO, "create files table");
146
m_pDS->exec("CREATE TABLE files ( idFile integer primary key, idPath integer, strFilename text, playCount integer, lastPlayed text)\n");
146
m_pDS->exec("CREATE TABLE files ( idFile integer primary key, idPath integer, strFilename varchar(512), playCount integer, lastPlayed text)\n");
147
147
m_pDS->exec("CREATE UNIQUE INDEX ix_files ON files ( idPath, strFilename )\n");
149
149
CLog::Log(LOGINFO, "create tvshow table");
177
177
for (int i = 0; i < VIDEODB_MAX_COLUMNS; i++)
179
179
CStdString column;
180
column.Format(",c%02d text", i);
180
if ( i == VIDEODB_ID_EPISODE_SEASON || i == VIDEODB_ID_EPISODE_EPISODE || i == VIDEODB_ID_EPISODE_BOOKMARK)
181
column.Format(",c%02d varchar(24)", i);
183
column.Format(",c%02d text", i);
181
185
columns += column;
183
187
columns += ",idFile integer)";