Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RENAME TABLE `a90`.`files` to `a90`.`globalfiles`;
- ALTER TABLE `a90`.`globalfiles` CHANGE playCount PlayCount1 INT;
- ALTER TABLE `a90`.`globalfiles` CHANGE lastPlayed lastPlayed1 TEXT;
- ALTER TABLE `a90`.`globalfiles` ADD playCount2 INT(11) AFTER lastPlayed1;
- ALTER TABLE `a90`.`globalfiles` ADD lastPlayed2 TEXT AFTER playCount2;
- ALTER TABLE `a90`.`globalfiles` ADD playCount3 INT(11) AFTER lastPlayed2;
- ALTER TABLE `a90`.`globalfiles` ADD lastPlayed3 TEXT AFTER playCount3;
- ALTER TABLE `a90`.`globalfiles` ADD playCount4 INT(11) AFTER lastPlayed3;
- ALTER TABLE `a90`.`globalfiles` ADD lastPlayed4 TEXT AFTER playCount4;
- ALTER TABLE `a90`.`globalfiles` ADD playCount5 INT(11) AFTER lastPlayed4;
- ALTER TABLE `a90`.`globalfiles` ADD lastPlayed5 TEXT AFTER playCount5;
- CREATE VIEW `a90`.`files`
- AS SELECT
- `a90`.`globalfiles`.`idFile` AS `idFile`,
- `a90`.`globalfiles`.`idPath` AS `idPath`,
- `a90`.`globalfiles`.`strFilename` AS `strFilename`,
- `a90`.`globalfiles`.`playCount1` AS `playCount`,
- `a90`.`globalfiles`.`lastPlayed1` AS `lastPlayed`,
- `a90`.`globalfiles`.`dateAdded` AS `dateAdded`
- FROM `a90`.`globalfiles`;
- CREATE DATABASE b90;
- CREATE VIEW `b90`.`actorlinkepisode` AS SELECT * FROM `a90`.`actorlinkepisode`;
- CREATE VIEW `b90`.`actorlinkmovie` AS SELECT * FROM `a90`.`actorlinkmovie`;
- CREATE VIEW `b90`.`actorlinktvshow` AS SELECT * FROM `a90`.`actorlinktvshow`;
- CREATE VIEW `b90`.`actors` AS SELECT * FROM `a90`.`actors`;
- CREATE VIEW `b90`.`art` AS SELECT * FROM `a90`.`art`;
- CREATE VIEW `b90`.`artistlinkmusicvideo` AS SELECT * FROM `a90`.`artistlinkmusicvideo`;
- CREATE VIEW `b90`.`country` AS SELECT * FROM `a90`.`country`;
- CREATE VIEW `b90`.`countrylinkmovie` AS SELECT * FROM `a90`.`countrylinkmovie`;
- CREATE VIEW `b90`.`directorlinkepisode` AS SELECT * FROM `a90`.`directorlinkepisode`;
- CREATE VIEW `b90`.`directorlinkmovie` AS SELECT * FROM `a90`.`directorlinkmovie`;
- CREATE VIEW `b90`.`directorlinkmusicvideo` AS SELECT * FROM `a90`.`directorlinkmusicvideo`;
- CREATE VIEW `b90`.`directorlinktvshow` AS SELECT * FROM `a90`.`directorlinktvshow`;
- CREATE VIEW `b90`.`episode` AS SELECT * FROM `a90`.`episode`;
- CREATE VIEW `b90`.`genre` AS SELECT * FROM `a90`.`genre`;
- CREATE VIEW `b90`.`genrelinkmovie` AS SELECT * FROM `a90`.`genrelinkmovie`;
- CREATE VIEW `b90`.`genrelinkmusicvideo` AS SELECT * FROM `a90`.`genrelinkmusicvideo`;
- CREATE VIEW `b90`.`genrelinktvshow` AS SELECT * FROM `a90`.`genrelinktvshow`;
- CREATE VIEW `b90`.`movie` AS SELECT * FROM `a90`.`movie`;
- CREATE VIEW `b90`.`movielinktvshow` AS SELECT * FROM `a90`.`movielinktvshow`;
- CREATE VIEW `b90`.`musicvideo` AS SELECT * FROM `a90`.`musicvideo`;
- CREATE VIEW `b90`.`path` AS SELECT * FROM `a90`.`path`;
- CREATE VIEW `b90`.`seasons` AS SELECT * FROM `a90`.`seasons`;
- CREATE VIEW `b90`.`sets` AS SELECT * FROM `a90`.`sets`;
- CREATE VIEW `b90`.`settings` AS SELECT * FROM `a90`.`settings`;
- CREATE VIEW `b90`.`stacktimes` AS SELECT * FROM `a90`.`stacktimes`;
- CREATE VIEW `b90`.`streamdetails` AS SELECT * FROM `a90`.`streamdetails`;
- CREATE VIEW `b90`.`studio` AS SELECT * FROM `a90`.`studio`;
- CREATE VIEW `b90`.`studiolinkmovie` AS SELECT * FROM `a90`.`studiolinkmovie`;
- CREATE VIEW `b90`.`studiolinkmusicvideo` AS SELECT * FROM `a90`.`studiolinkmusicvideo`;
- CREATE VIEW `b90`.`studiolinktvshow` AS SELECT * FROM `a90`.`studiolinktvshow`;
- CREATE VIEW `b90`.`tag` AS SELECT * FROM `a90`.`tag`;
- CREATE VIEW `b90`.`taglinks` AS SELECT * FROM `a90`.`taglinks`;
- CREATE VIEW `b90`.`tvshow` AS SELECT * FROM `a90`.`tvshow`;
- CREATE VIEW `b90`.`tvshowlinkpath` AS SELECT * FROM `a90`.`tvshowlinkpath`;
- CREATE VIEW `b90`.`version` AS SELECT * FROM `a90`.`version`;
- CREATE VIEW `b90`.`writerlinkepisode` AS SELECT * FROM `a90`.`writerlinkepisode`;
- CREATE VIEW `b90`.`writerlinkmovie` AS SELECT * FROM `a90`.`writerlinkmovie`;
- CREATE VIEW `b90`.`files`
- AS SELECT
- `a90`.`globalfiles`.`idFile` AS `idFile`,
- `a90`.`globalfiles`.`idPath` AS `idPath`,
- `a90`.`globalfiles`.`strFilename` AS `strFilename`,
- `a90`.`globalfiles`.`playCount2` AS `playCount`,
- `a90`.`globalfiles`.`lastPlayed2` AS `lastPlayed`,
- `a90`.`globalfiles`.`dateAdded` AS `dateAdded`
- FROM `a90`.`globalfiles`;
- CREATE TABLE `b90`.`bookmark` (
- `idBookmark` int(11) NOT NULL AUTO_INCREMENT,
- `idFile` int(11) DEFAULT NULL,
- `timeInSeconds` double DEFAULT NULL,
- `totalTimeInSeconds` double DEFAULT NULL,
- `thumbNailImage` text,
- `player` text,
- `playerState` text,
- `type` int(11) DEFAULT NULL,
- PRIMARY KEY (`idBookmark`),
- KEY `ix_bookmark` (`idFile`,`type`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- CREATE VIEW `b90`.`episodeview`
- AS SELECT
- `episode`.`idEpisode` AS `idEpisode`,
- `episode`.`idFile` AS `idFile`,
- `episode`.`c00` AS `c00`,
- `episode`.`c01` AS `c01`,
- `episode`.`c02` AS `c02`,
- `episode`.`c03` AS `c03`,
- `episode`.`c04` AS `c04`,
- `episode`.`c05` AS `c05`,
- `episode`.`c06` AS `c06`,
- `episode`.`c07` AS `c07`,
- `episode`.`c08` AS `c08`,
- `episode`.`c09` AS `c09`,
- `episode`.`c10` AS `c10`,
- `episode`.`c11` AS `c11`,
- `episode`.`c12` AS `c12`,
- `episode`.`c13` AS `c13`,
- `episode`.`c14` AS `c14`,
- `episode`.`c15` AS `c15`,
- `episode`.`c16` AS `c16`,
- `episode`.`c17` AS `c17`,
- `episode`.`c18` AS `c18`,
- `episode`.`c19` AS `c19`,
- `episode`.`c20` AS `c20`,
- `episode`.`c21` AS `c21`,
- `episode`.`c22` AS `c22`,
- `episode`.`c23` AS `c23`,
- `episode`.`idShow` AS `idShow`,
- `files`.`strFilename` AS `strFileName`,
- `path`.`strPath` AS `strPath`,
- `files`.`playCount` AS `playCount`,
- `files`.`lastPlayed` AS `lastPlayed`,
- `files`.`dateAdded` AS `dateAdded`,
- `tvshow`.`c00` AS `strTitle`,
- `tvshow`.`c14` AS `strStudio`,
- `tvshow`.`c05` AS `premiered`,
- `tvshow`.`c13` AS `mpaa`,
- `tvshow`.`c16` AS `strShowPath`,
- `b90`.`bookmark`.`timeInSeconds` AS `resumeTimeInSeconds`,
- `b90`.`bookmark`.`totalTimeInSeconds` AS `totalTimeInSeconds`,
- `seasons`.`idSeason` AS `idSeason`
- FROM (((((`b90`.`episode` join `b90`.`files` on((`files`.`idFile` = `episode`.`idFile`))) join `b90`.`tvshow` on((`tvshow`.`idShow` = `episode`.`idShow`))) left join `b90`.`seasons` on(((`seasons`.`idShow` = `episode`.`idShow`) and (`seasons`.`season` = `episode`.`c12`)))) join `b90`.`path` on((`files`.`idPath` = `path`.`idPath`))) left join `b90`.`bookmark` on(((`b90`.`bookmark`.`idFile` = `episode`.`idFile`) and (`b90`.`bookmark`.`type` = 1))));
- CREATE VIEW `b90`.`movieview`
- AS SELECT
- `movie`.`idMovie` AS `idMovie`,
- `movie`.`idFile` AS `idFile`,
- `movie`.`c00` AS `c00`,
- `movie`.`c01` AS `c01`,
- `movie`.`c02` AS `c02`,
- `movie`.`c03` AS `c03`,
- `movie`.`c04` AS `c04`,
- `movie`.`c05` AS `c05`,
- `movie`.`c06` AS `c06`,
- `movie`.`c07` AS `c07`,
- `movie`.`c08` AS `c08`,
- `movie`.`c09` AS `c09`,
- `movie`.`c10` AS `c10`,
- `movie`.`c11` AS `c11`,
- `movie`.`c12` AS `c12`,
- `movie`.`c13` AS `c13`,
- `movie`.`c14` AS `c14`,
- `movie`.`c15` AS `c15`,
- `movie`.`c16` AS `c16`,
- `movie`.`c17` AS `c17`,
- `movie`.`c18` AS `c18`,
- `movie`.`c19` AS `c19`,
- `movie`.`c20` AS `c20`,
- `movie`.`c21` AS `c21`,
- `movie`.`c22` AS `c22`,
- `movie`.`c23` AS `c23`,
- `movie`.`idSet` AS `idSet`,
- `sets`.`strSet` AS `strSet`,
- `files`.`strFilename` AS `strFileName`,
- `path`.`strPath` AS `strPath`,
- `files`.`playCount` AS `playCount`,
- `files`.`lastPlayed` AS `lastPlayed`,
- `files`.`dateAdded` AS `dateAdded`,
- `b90`.`bookmark`.`timeInSeconds` AS `resumeTimeInSeconds`,
- `b90`.`bookmark`.`totalTimeInSeconds` AS `totalTimeInSeconds`
- FROM ((((`b90`.`movie` left join `b90`.`sets` on((`sets`.`idSet` = `movie`.`idSet`))) join `b90`.`files` on((`files`.`idFile` = `movie`.`idFile`))) join `b90`.`path` on((`path`.`idPath` = `files`.`idPath`))) left join `b90`.`bookmark` on(((`b90`.`bookmark`.`idFile` = `movie`.`idFile`) and (`b90`.`bookmark`.`type` = 1))));
- CREATE VIEW `b90`.`musicvideoview`
- AS SELECT
- `musicvideo`.`idMVideo` AS `idMVideo`,
- `musicvideo`.`idFile` AS `idFile`,
- `musicvideo`.`c00` AS `c00`,
- `musicvideo`.`c01` AS `c01`,
- `musicvideo`.`c02` AS `c02`,
- `musicvideo`.`c03` AS `c03`,
- `musicvideo`.`c04` AS `c04`,
- `musicvideo`.`c05` AS `c05`,
- `musicvideo`.`c06` AS `c06`,
- `musicvideo`.`c07` AS `c07`,
- `musicvideo`.`c08` AS `c08`,
- `musicvideo`.`c09` AS `c09`,
- `musicvideo`.`c10` AS `c10`,
- `musicvideo`.`c11` AS `c11`,
- `musicvideo`.`c12` AS `c12`,
- `musicvideo`.`c13` AS `c13`,
- `musicvideo`.`c14` AS `c14`,
- `musicvideo`.`c15` AS `c15`,
- `musicvideo`.`c16` AS `c16`,
- `musicvideo`.`c17` AS `c17`,
- `musicvideo`.`c18` AS `c18`,
- `musicvideo`.`c19` AS `c19`,
- `musicvideo`.`c20` AS `c20`,
- `musicvideo`.`c21` AS `c21`,
- `musicvideo`.`c22` AS `c22`,
- `musicvideo`.`c23` AS `c23`,
- `files`.`strFilename` AS `strFileName`,
- `path`.`strPath` AS `strPath`,
- `files`.`playCount` AS `playCount`,
- `files`.`lastPlayed` AS `lastPlayed`,
- `files`.`dateAdded` AS `dateAdded`,
- `b90`.`bookmark`.`timeInSeconds` AS `resumeTimeInSeconds`,
- `b90`.`bookmark`.`totalTimeInSeconds` AS `totalTimeInSeconds`
- FROM (((`b90`.`musicvideo` join `b90`.`files` on((`files`.`idFile` = `musicvideo`.`idFile`))) join `b90`.`path` on((`path`.`idPath` = `files`.`idPath`))) left join `b90`.`bookmark` on(((`b90`.`bookmark`.`idFile` = `musicvideo`.`idFile`) and (`b90`.`bookmark`.`type` = 1))));
- CREATE VIEW `b90`.`tvshowview`
- AS SELECT
- `tvshow`.`idShow` AS `idShow`,
- `tvshow`.`c00` AS `c00`,
- `tvshow`.`c01` AS `c01`,
- `tvshow`.`c02` AS `c02`,
- `tvshow`.`c03` AS `c03`,
- `tvshow`.`c04` AS `c04`,
- `tvshow`.`c05` AS `c05`,
- `tvshow`.`c06` AS `c06`,
- `tvshow`.`c07` AS `c07`,
- `tvshow`.`c08` AS `c08`,
- `tvshow`.`c09` AS `c09`,
- `tvshow`.`c10` AS `c10`,
- `tvshow`.`c11` AS `c11`,
- `tvshow`.`c12` AS `c12`,
- `tvshow`.`c13` AS `c13`,
- `tvshow`.`c14` AS `c14`,
- `tvshow`.`c15` AS `c15`,
- `tvshow`.`c16` AS `c16`,
- `tvshow`.`c17` AS `c17`,
- `tvshow`.`c18` AS `c18`,
- `tvshow`.`c19` AS `c19`,
- `tvshow`.`c20` AS `c20`,
- `tvshow`.`c21` AS `c21`,
- `tvshow`.`c22` AS `c22`,
- `tvshow`.`c23` AS `c23`,
- `path`.`idParentPath` AS `idParentPath`,
- `path`.`strPath` AS `strPath`,
- `path`.`dateAdded` AS `dateAdded`,max(`files`.`lastPlayed`) AS `lastPlayed`,nullif(count(`episode`.`c12`),0) AS `totalCount`,count(`files`.`playCount`) AS `watchedcount`,nullif(count(distinct `episode`.`c12`),0) AS `totalSeasons`
- FROM ((((`b90`.`tvshow` left join `b90`.`tvshowlinkpath` on((`tvshowlinkpath`.`idShow` = `tvshow`.`idShow`))) left join `b90`.`path` on((`path`.`idPath` = `tvshowlinkpath`.`idPath`))) left join `b90`.`episode` on((`episode`.`idShow` = `tvshow`.`idShow`))) left join `b90`.`files` on((`files`.`idFile` = `episode`.`idFile`))) group by `tvshow`.`idShow`;
- CREATE DATABASE c90;
- CREATE VIEW `c90`.`actorlinkepisode` AS SELECT * FROM `a90`.`actorlinkepisode`;
- CREATE VIEW `c90`.`actorlinkmovie` AS SELECT * FROM `a90`.`actorlinkmovie`;
- CREATE VIEW `c90`.`actorlinktvshow` AS SELECT * FROM `a90`.`actorlinktvshow`;
- CREATE VIEW `c90`.`actors` AS SELECT * FROM `a90`.`actors`;
- CREATE VIEW `c90`.`art` AS SELECT * FROM `a90`.`art`;
- CREATE VIEW `c90`.`artistlinkmusicvideo` AS SELECT * FROM `a90`.`artistlinkmusicvideo`;
- CREATE VIEW `c90`.`country` AS SELECT * FROM `a90`.`country`;
- CREATE VIEW `c90`.`countrylinkmovie` AS SELECT * FROM `a90`.`countrylinkmovie`;
- CREATE VIEW `c90`.`directorlinkepisode` AS SELECT * FROM `a90`.`directorlinkepisode`;
- CREATE VIEW `c90`.`directorlinkmovie` AS SELECT * FROM `a90`.`directorlinkmovie`;
- CREATE VIEW `c90`.`directorlinkmusicvideo` AS SELECT * FROM `a90`.`directorlinkmusicvideo`;
- CREATE VIEW `c90`.`directorlinktvshow` AS SELECT * FROM `a90`.`directorlinktvshow`;
- CREATE VIEW `c90`.`episode` AS SELECT * FROM `a90`.`episode`;
- CREATE VIEW `c90`.`genre` AS SELECT * FROM `a90`.`genre`;
- CREATE VIEW `c90`.`genrelinkmovie` AS SELECT * FROM `a90`.`genrelinkmovie`;
- CREATE VIEW `c90`.`genrelinkmusicvideo` AS SELECT * FROM `a90`.`genrelinkmusicvideo`;
- CREATE VIEW `c90`.`genrelinktvshow` AS SELECT * FROM `a90`.`genrelinktvshow`;
- CREATE VIEW `c90`.`movie` AS SELECT * FROM `a90`.`movie`;
- CREATE VIEW `c90`.`movielinktvshow` AS SELECT * FROM `a90`.`movielinktvshow`;
- CREATE VIEW `c90`.`musicvideo` AS SELECT * FROM `a90`.`musicvideo`;
- CREATE VIEW `c90`.`path` AS SELECT * FROM `a90`.`path`;
- CREATE VIEW `c90`.`seasons` AS SELECT * FROM `a90`.`seasons`;
- CREATE VIEW `c90`.`sets` AS SELECT * FROM `a90`.`sets`;
- CREATE VIEW `c90`.`settings` AS SELECT * FROM `a90`.`settings`;
- CREATE VIEW `c90`.`stacktimes` AS SELECT * FROM `a90`.`stacktimes`;
- CREATE VIEW `c90`.`streamdetails` AS SELECT * FROM `a90`.`streamdetails`;
- CREATE VIEW `c90`.`studio` AS SELECT * FROM `a90`.`studio`;
- CREATE VIEW `c90`.`studiolinkmovie` AS SELECT * FROM `a90`.`studiolinkmovie`;
- CREATE VIEW `c90`.`studiolinkmusicvideo` AS SELECT * FROM `a90`.`studiolinkmusicvideo`;
- CREATE VIEW `c90`.`studiolinktvshow` AS SELECT * FROM `a90`.`studiolinktvshow`;
- CREATE VIEW `c90`.`tag` AS SELECT * FROM `a90`.`tag`;
- CREATE VIEW `c90`.`taglinks` AS SELECT * FROM `a90`.`taglinks`;
- CREATE VIEW `c90`.`tvshow` AS SELECT * FROM `a90`.`tvshow`;
- CREATE VIEW `c90`.`tvshowlinkpath` AS SELECT * FROM `a90`.`tvshowlinkpath`;
- CREATE VIEW `c90`.`version` AS SELECT * FROM `a90`.`version`;
- CREATE VIEW `c90`.`writerlinkepisode` AS SELECT * FROM `a90`.`writerlinkepisode`;
- CREATE VIEW `c90`.`writerlinkmovie` AS SELECT * FROM `a90`.`writerlinkmovie`;
- CREATE VIEW `c90`.`files`
- AS SELECT
- `a90`.`globalfiles`.`idFile` AS `idFile`,
- `a90`.`globalfiles`.`idPath` AS `idPath`,
- `a90`.`globalfiles`.`strFilename` AS `strFilename`,
- `a90`.`globalfiles`.`playCount3` AS `playCount`,
- `a90`.`globalfiles`.`lastPlayed3` AS `lastPlayed`,
- `a90`.`globalfiles`.`dateAdded` AS `dateAdded`
- FROM `a90`.`globalfiles`;
- CREATE TABLE `c90`.`bookmark` (
- `idBookmark` int(11) NOT NULL AUTO_INCREMENT,
- `idFile` int(11) DEFAULT NULL,
- `timeInSeconds` double DEFAULT NULL,
- `totalTimeInSeconds` double DEFAULT NULL,
- `thumbNailImage` text,
- `player` text,
- `playerState` text,
- `type` int(11) DEFAULT NULL,
- PRIMARY KEY (`idBookmark`),
- KEY `ix_bookmark` (`idFile`,`type`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- CREATE VIEW `c90`.`episodeview`
- AS SELECT
- `episode`.`idEpisode` AS `idEpisode`,
- `episode`.`idFile` AS `idFile`,
- `episode`.`c00` AS `c00`,
- `episode`.`c01` AS `c01`,
- `episode`.`c02` AS `c02`,
- `episode`.`c03` AS `c03`,
- `episode`.`c04` AS `c04`,
- `episode`.`c05` AS `c05`,
- `episode`.`c06` AS `c06`,
- `episode`.`c07` AS `c07`,
- `episode`.`c08` AS `c08`,
- `episode`.`c09` AS `c09`,
- `episode`.`c10` AS `c10`,
- `episode`.`c11` AS `c11`,
- `episode`.`c12` AS `c12`,
- `episode`.`c13` AS `c13`,
- `episode`.`c14` AS `c14`,
- `episode`.`c15` AS `c15`,
- `episode`.`c16` AS `c16`,
- `episode`.`c17` AS `c17`,
- `episode`.`c18` AS `c18`,
- `episode`.`c19` AS `c19`,
- `episode`.`c20` AS `c20`,
- `episode`.`c21` AS `c21`,
- `episode`.`c22` AS `c22`,
- `episode`.`c23` AS `c23`,
- `episode`.`idShow` AS `idShow`,
- `files`.`strFilename` AS `strFileName`,
- `path`.`strPath` AS `strPath`,
- `files`.`playCount` AS `playCount`,
- `files`.`lastPlayed` AS `lastPlayed`,
- `files`.`dateAdded` AS `dateAdded`,
- `tvshow`.`c00` AS `strTitle`,
- `tvshow`.`c14` AS `strStudio`,
- `tvshow`.`c05` AS `premiered`,
- `tvshow`.`c13` AS `mpaa`,
- `tvshow`.`c16` AS `strShowPath`,
- `c90`.`bookmark`.`timeInSeconds` AS `resumeTimeInSeconds`,
- `c90`.`bookmark`.`totalTimeInSeconds` AS `totalTimeInSeconds`,
- `seasons`.`idSeason` AS `idSeason`
- FROM (((((`c90`.`episode` join `c90`.`files` on((`files`.`idFile` = `episode`.`idFile`))) join `c90`.`tvshow` on((`tvshow`.`idShow` = `episode`.`idShow`))) left join `c90`.`seasons` on(((`seasons`.`idShow` = `episode`.`idShow`) and (`seasons`.`season` = `episode`.`c12`)))) join `c90`.`path` on((`files`.`idPath` = `path`.`idPath`))) left join `c90`.`bookmark` on(((`c90`.`bookmark`.`idFile` = `episode`.`idFile`) and (`c90`.`bookmark`.`type` = 1))));
- CREATE VIEW `c90`.`movieview`
- AS SELECT
- `movie`.`idMovie` AS `idMovie`,
- `movie`.`idFile` AS `idFile`,
- `movie`.`c00` AS `c00`,
- `movie`.`c01` AS `c01`,
- `movie`.`c02` AS `c02`,
- `movie`.`c03` AS `c03`,
- `movie`.`c04` AS `c04`,
- `movie`.`c05` AS `c05`,
- `movie`.`c06` AS `c06`,
- `movie`.`c07` AS `c07`,
- `movie`.`c08` AS `c08`,
- `movie`.`c09` AS `c09`,
- `movie`.`c10` AS `c10`,
- `movie`.`c11` AS `c11`,
- `movie`.`c12` AS `c12`,
- `movie`.`c13` AS `c13`,
- `movie`.`c14` AS `c14`,
- `movie`.`c15` AS `c15`,
- `movie`.`c16` AS `c16`,
- `movie`.`c17` AS `c17`,
- `movie`.`c18` AS `c18`,
- `movie`.`c19` AS `c19`,
- `movie`.`c20` AS `c20`,
- `movie`.`c21` AS `c21`,
- `movie`.`c22` AS `c22`,
- `movie`.`c23` AS `c23`,
- `movie`.`idSet` AS `idSet`,
- `sets`.`strSet` AS `strSet`,
- `files`.`strFilename` AS `strFileName`,
- `path`.`strPath` AS `strPath`,
- `files`.`playCount` AS `playCount`,
- `files`.`lastPlayed` AS `lastPlayed`,
- `files`.`dateAdded` AS `dateAdded`,
- `c90`.`bookmark`.`timeInSeconds` AS `resumeTimeInSeconds`,
- `c90`.`bookmark`.`totalTimeInSeconds` AS `totalTimeInSeconds`
- FROM ((((`c90`.`movie` left join `c90`.`sets` on((`sets`.`idSet` = `movie`.`idSet`))) join `c90`.`files` on((`files`.`idFile` = `movie`.`idFile`))) join `c90`.`path` on((`path`.`idPath` = `files`.`idPath`))) left join `c90`.`bookmark` on(((`c90`.`bookmark`.`idFile` = `movie`.`idFile`) and (`c90`.`bookmark`.`type` = 1))));
- CREATE VIEW `c90`.`musicvideoview`
- AS SELECT
- `musicvideo`.`idMVideo` AS `idMVideo`,
- `musicvideo`.`idFile` AS `idFile`,
- `musicvideo`.`c00` AS `c00`,
- `musicvideo`.`c01` AS `c01`,
- `musicvideo`.`c02` AS `c02`,
- `musicvideo`.`c03` AS `c03`,
- `musicvideo`.`c04` AS `c04`,
- `musicvideo`.`c05` AS `c05`,
- `musicvideo`.`c06` AS `c06`,
- `musicvideo`.`c07` AS `c07`,
- `musicvideo`.`c08` AS `c08`,
- `musicvideo`.`c09` AS `c09`,
- `musicvideo`.`c10` AS `c10`,
- `musicvideo`.`c11` AS `c11`,
- `musicvideo`.`c12` AS `c12`,
- `musicvideo`.`c13` AS `c13`,
- `musicvideo`.`c14` AS `c14`,
- `musicvideo`.`c15` AS `c15`,
- `musicvideo`.`c16` AS `c16`,
- `musicvideo`.`c17` AS `c17`,
- `musicvideo`.`c18` AS `c18`,
- `musicvideo`.`c19` AS `c19`,
- `musicvideo`.`c20` AS `c20`,
- `musicvideo`.`c21` AS `c21`,
- `musicvideo`.`c22` AS `c22`,
- `musicvideo`.`c23` AS `c23`,
- `files`.`strFilename` AS `strFileName`,
- `path`.`strPath` AS `strPath`,
- `files`.`playCount` AS `playCount`,
- `files`.`lastPlayed` AS `lastPlayed`,
- `files`.`dateAdded` AS `dateAdded`,
- `c90`.`bookmark`.`timeInSeconds` AS `resumeTimeInSeconds`,
- `c90`.`bookmark`.`totalTimeInSeconds` AS `totalTimeInSeconds`
- FROM (((`c90`.`musicvideo` join `c90`.`files` on((`files`.`idFile` = `musicvideo`.`idFile`))) join `c90`.`path` on((`path`.`idPath` = `files`.`idPath`))) left join `c90`.`bookmark` on(((`c90`.`bookmark`.`idFile` = `musicvideo`.`idFile`) and (`c90`.`bookmark`.`type` = 1))));
- CREATE VIEW `c90`.`tvshowview`
- AS SELECT
- `tvshow`.`idShow` AS `idShow`,
- `tvshow`.`c00` AS `c00`,
- `tvshow`.`c01` AS `c01`,
- `tvshow`.`c02` AS `c02`,
- `tvshow`.`c03` AS `c03`,
- `tvshow`.`c04` AS `c04`,
- `tvshow`.`c05` AS `c05`,
- `tvshow`.`c06` AS `c06`,
- `tvshow`.`c07` AS `c07`,
- `tvshow`.`c08` AS `c08`,
- `tvshow`.`c09` AS `c09`,
- `tvshow`.`c10` AS `c10`,
- `tvshow`.`c11` AS `c11`,
- `tvshow`.`c12` AS `c12`,
- `tvshow`.`c13` AS `c13`,
- `tvshow`.`c14` AS `c14`,
- `tvshow`.`c15` AS `c15`,
- `tvshow`.`c16` AS `c16`,
- `tvshow`.`c17` AS `c17`,
- `tvshow`.`c18` AS `c18`,
- `tvshow`.`c19` AS `c19`,
- `tvshow`.`c20` AS `c20`,
- `tvshow`.`c21` AS `c21`,
- `tvshow`.`c22` AS `c22`,
- `tvshow`.`c23` AS `c23`,
- `path`.`idParentPath` AS `idParentPath`,
- `path`.`strPath` AS `strPath`,
- `path`.`dateAdded` AS `dateAdded`,max(`files`.`lastPlayed`) AS `lastPlayed`,nullif(count(`episode`.`c12`),0) AS `totalCount`,count(`files`.`playCount`) AS `watchedcount`,nullif(count(distinct `episode`.`c12`),0) AS `totalSeasons`
- FROM ((((`c90`.`tvshow` left join `c90`.`tvshowlinkpath` on((`tvshowlinkpath`.`idShow` = `tvshow`.`idShow`))) left join `c90`.`path` on((`path`.`idPath` = `tvshowlinkpath`.`idPath`))) left join `c90`.`episode` on((`episode`.`idShow` = `tvshow`.`idShow`))) left join `c90`.`files` on((`files`.`idFile` = `episode`.`idFile`))) group by `tvshow`.`idShow`;
- CREATE DATABASE d90;
- CREATE VIEW `d90`.`actorlinkepisode` AS SELECT * FROM `a90`.`actorlinkepisode`;
- CREATE VIEW `d90`.`actorlinkmovie` AS SELECT * FROM `a90`.`actorlinkmovie`;
- CREATE VIEW `d90`.`actorlinktvshow` AS SELECT * FROM `a90`.`actorlinktvshow`;
- CREATE VIEW `d90`.`actors` AS SELECT * FROM `a90`.`actors`;
- CREATE VIEW `d90`.`art` AS SELECT * FROM `a90`.`art`;
- CREATE VIEW `d90`.`artistlinkmusicvideo` AS SELECT * FROM `a90`.`artistlinkmusicvideo`;
- CREATE VIEW `d90`.`country` AS SELECT * FROM `a90`.`country`;
- CREATE VIEW `d90`.`countrylinkmovie` AS SELECT * FROM `a90`.`countrylinkmovie`;
- CREATE VIEW `d90`.`directorlinkepisode` AS SELECT * FROM `a90`.`directorlinkepisode`;
- CREATE VIEW `d90`.`directorlinkmovie` AS SELECT * FROM `a90`.`directorlinkmovie`;
- CREATE VIEW `d90`.`directorlinkmusicvideo` AS SELECT * FROM `a90`.`directorlinkmusicvideo`;
- CREATE VIEW `d90`.`directorlinktvshow` AS SELECT * FROM `a90`.`directorlinktvshow`;
- CREATE VIEW `d90`.`episode` AS SELECT * FROM `a90`.`episode`;
- CREATE VIEW `d90`.`genre` AS SELECT * FROM `a90`.`genre`;
- CREATE VIEW `d90`.`genrelinkmovie` AS SELECT * FROM `a90`.`genrelinkmovie`;
- CREATE VIEW `d90`.`genrelinkmusicvideo` AS SELECT * FROM `a90`.`genrelinkmusicvideo`;
- CREATE VIEW `d90`.`genrelinktvshow` AS SELECT * FROM `a90`.`genrelinktvshow`;
- CREATE VIEW `d90`.`movie` AS SELECT * FROM `a90`.`movie`;
- CREATE VIEW `d90`.`movielinktvshow` AS SELECT * FROM `a90`.`movielinktvshow`;
- CREATE VIEW `d90`.`musicvideo` AS SELECT * FROM `a90`.`musicvideo`;
- CREATE VIEW `d90`.`path` AS SELECT * FROM `a90`.`path`;
- CREATE VIEW `d90`.`seasons` AS SELECT * FROM `a90`.`seasons`;
- CREATE VIEW `d90`.`sets` AS SELECT * FROM `a90`.`sets`;
- CREATE VIEW `d90`.`settings` AS SELECT * FROM `a90`.`settings`;
- CREATE VIEW `d90`.`stacktimes` AS SELECT * FROM `a90`.`stacktimes`;
- CREATE VIEW `d90`.`streamdetails` AS SELECT * FROM `a90`.`streamdetails`;
- CREATE VIEW `d90`.`studio` AS SELECT * FROM `a90`.`studio`;
- CREATE VIEW `d90`.`studiolinkmovie` AS SELECT * FROM `a90`.`studiolinkmovie`;
- CREATE VIEW `d90`.`studiolinkmusicvideo` AS SELECT * FROM `a90`.`studiolinkmusicvideo`;
- CREATE VIEW `d90`.`studiolinktvshow` AS SELECT * FROM `a90`.`studiolinktvshow`;
- CREATE VIEW `d90`.`tag` AS SELECT * FROM `a90`.`tag`;
- CREATE VIEW `d90`.`taglinks` AS SELECT * FROM `a90`.`taglinks`;
- CREATE VIEW `d90`.`tvshow` AS SELECT * FROM `a90`.`tvshow`;
- CREATE VIEW `d90`.`tvshowlinkpath` AS SELECT * FROM `a90`.`tvshowlinkpath`;
- CREATE VIEW `d90`.`version` AS SELECT * FROM `a90`.`version`;
- CREATE VIEW `d90`.`writerlinkepisode` AS SELECT * FROM `a90`.`writerlinkepisode`;
- CREATE VIEW `d90`.`writerlinkmovie` AS SELECT * FROM `a90`.`writerlinkmovie`;
- CREATE VIEW `d90`.`files`
- AS SELECT
- `a90`.`globalfiles`.`idFile` AS `idFile`,
- `a90`.`globalfiles`.`idPath` AS `idPath`,
- `a90`.`globalfiles`.`strFilename` AS `strFilename`,
- `a90`.`globalfiles`.`playCount4` AS `playCount`,
- `a90`.`globalfiles`.`lastPlayed4` AS `lastPlayed`,
- `a90`.`globalfiles`.`dateAdded` AS `dateAdded`
- FROM `a90`.`globalfiles`;
- CREATE TABLE `d90`.`bookmark` (
- `idBookmark` int(11) NOT NULL AUTO_INCREMENT,
- `idFile` int(11) DEFAULT NULL,
- `timeInSeconds` double DEFAULT NULL,
- `totalTimeInSeconds` double DEFAULT NULL,
- `thumbNailImage` text,
- `player` text,
- `playerState` text,
- `type` int(11) DEFAULT NULL,
- PRIMARY KEY (`idBookmark`),
- KEY `ix_bookmark` (`idFile`,`type`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- CREATE VIEW `d90`.`episodeview`
- AS SELECT
- `episode`.`idEpisode` AS `idEpisode`,
- `episode`.`idFile` AS `idFile`,
- `episode`.`c00` AS `c00`,
- `episode`.`c01` AS `c01`,
- `episode`.`c02` AS `c02`,
- `episode`.`c03` AS `c03`,
- `episode`.`c04` AS `c04`,
- `episode`.`c05` AS `c05`,
- `episode`.`c06` AS `c06`,
- `episode`.`c07` AS `c07`,
- `episode`.`c08` AS `c08`,
- `episode`.`c09` AS `c09`,
- `episode`.`c10` AS `c10`,
- `episode`.`c11` AS `c11`,
- `episode`.`c12` AS `c12`,
- `episode`.`c13` AS `c13`,
- `episode`.`c14` AS `c14`,
- `episode`.`c15` AS `c15`,
- `episode`.`c16` AS `c16`,
- `episode`.`c17` AS `c17`,
- `episode`.`c18` AS `c18`,
- `episode`.`c19` AS `c19`,
- `episode`.`c20` AS `c20`,
- `episode`.`c21` AS `c21`,
- `episode`.`c22` AS `c22`,
- `episode`.`c23` AS `c23`,
- `episode`.`idShow` AS `idShow`,
- `files`.`strFilename` AS `strFileName`,
- `path`.`strPath` AS `strPath`,
- `files`.`playCount` AS `playCount`,
- `files`.`lastPlayed` AS `lastPlayed`,
- `files`.`dateAdded` AS `dateAdded`,
- `tvshow`.`c00` AS `strTitle`,
- `tvshow`.`c14` AS `strStudio`,
- `tvshow`.`c05` AS `premiered`,
- `tvshow`.`c13` AS `mpaa`,
- `tvshow`.`c16` AS `strShowPath`,
- `d90`.`bookmark`.`timeInSeconds` AS `resumeTimeInSeconds`,
- `d90`.`bookmark`.`totalTimeInSeconds` AS `totalTimeInSeconds`,
- `seasons`.`idSeason` AS `idSeason`
- FROM (((((`d90`.`episode` join `d90`.`files` on((`files`.`idFile` = `episode`.`idFile`))) join `d90`.`tvshow` on((`tvshow`.`idShow` = `episode`.`idShow`))) left join `d90`.`seasons` on(((`seasons`.`idShow` = `episode`.`idShow`) and (`seasons`.`season` = `episode`.`c12`)))) join `d90`.`path` on((`files`.`idPath` = `path`.`idPath`))) left join `d90`.`bookmark` on(((`d90`.`bookmark`.`idFile` = `episode`.`idFile`) and (`d90`.`bookmark`.`type` = 1))));
- CREATE VIEW `d90`.`movieview`
- AS SELECT
- `movie`.`idMovie` AS `idMovie`,
- `movie`.`idFile` AS `idFile`,
- `movie`.`c00` AS `c00`,
- `movie`.`c01` AS `c01`,
- `movie`.`c02` AS `c02`,
- `movie`.`c03` AS `c03`,
- `movie`.`c04` AS `c04`,
- `movie`.`c05` AS `c05`,
- `movie`.`c06` AS `c06`,
- `movie`.`c07` AS `c07`,
- `movie`.`c08` AS `c08`,
- `movie`.`c09` AS `c09`,
- `movie`.`c10` AS `c10`,
- `movie`.`c11` AS `c11`,
- `movie`.`c12` AS `c12`,
- `movie`.`c13` AS `c13`,
- `movie`.`c14` AS `c14`,
- `movie`.`c15` AS `c15`,
- `movie`.`c16` AS `c16`,
- `movie`.`c17` AS `c17`,
- `movie`.`c18` AS `c18`,
- `movie`.`c19` AS `c19`,
- `movie`.`c20` AS `c20`,
- `movie`.`c21` AS `c21`,
- `movie`.`c22` AS `c22`,
- `movie`.`c23` AS `c23`,
- `movie`.`idSet` AS `idSet`,
- `sets`.`strSet` AS `strSet`,
- `files`.`strFilename` AS `strFileName`,
- `path`.`strPath` AS `strPath`,
- `files`.`playCount` AS `playCount`,
- `files`.`lastPlayed` AS `lastPlayed`,
- `files`.`dateAdded` AS `dateAdded`,
- `d90`.`bookmark`.`timeInSeconds` AS `resumeTimeInSeconds`,
- `d90`.`bookmark`.`totalTimeInSeconds` AS `totalTimeInSeconds`
- FROM ((((`d90`.`movie` left join `d90`.`sets` on((`sets`.`idSet` = `movie`.`idSet`))) join `d90`.`files` on((`files`.`idFile` = `movie`.`idFile`))) join `d90`.`path` on((`path`.`idPath` = `files`.`idPath`))) left join `d90`.`bookmark` on(((`d90`.`bookmark`.`idFile` = `movie`.`idFile`) and (`d90`.`bookmark`.`type` = 1))));
- CREATE VIEW `d90`.`musicvideoview`
- AS SELECT
- `musicvideo`.`idMVideo` AS `idMVideo`,
- `musicvideo`.`idFile` AS `idFile`,
- `musicvideo`.`c00` AS `c00`,
- `musicvideo`.`c01` AS `c01`,
- `musicvideo`.`c02` AS `c02`,
- `musicvideo`.`c03` AS `c03`,
- `musicvideo`.`c04` AS `c04`,
- `musicvideo`.`c05` AS `c05`,
- `musicvideo`.`c06` AS `c06`,
- `musicvideo`.`c07` AS `c07`,
- `musicvideo`.`c08` AS `c08`,
- `musicvideo`.`c09` AS `c09`,
- `musicvideo`.`c10` AS `c10`,
- `musicvideo`.`c11` AS `c11`,
- `musicvideo`.`c12` AS `c12`,
- `musicvideo`.`c13` AS `c13`,
- `musicvideo`.`c14` AS `c14`,
- `musicvideo`.`c15` AS `c15`,
- `musicvideo`.`c16` AS `c16`,
- `musicvideo`.`c17` AS `c17`,
- `musicvideo`.`c18` AS `c18`,
- `musicvideo`.`c19` AS `c19`,
- `musicvideo`.`c20` AS `c20`,
- `musicvideo`.`c21` AS `c21`,
- `musicvideo`.`c22` AS `c22`,
- `musicvideo`.`c23` AS `c23`,
- `files`.`strFilename` AS `strFileName`,
- `path`.`strPath` AS `strPath`,
- `files`.`playCount` AS `playCount`,
- `files`.`lastPlayed` AS `lastPlayed`,
- `files`.`dateAdded` AS `dateAdded`,
- `d90`.`bookmark`.`timeInSeconds` AS `resumeTimeInSeconds`,
- `d90`.`bookmark`.`totalTimeInSeconds` AS `totalTimeInSeconds`
- FROM (((`d90`.`musicvideo` join `d90`.`files` on((`files`.`idFile` = `musicvideo`.`idFile`))) join `d90`.`path` on((`path`.`idPath` = `files`.`idPath`))) left join `d90`.`bookmark` on(((`d90`.`bookmark`.`idFile` = `musicvideo`.`idFile`) and (`d90`.`bookmark`.`type` = 1))));
- CREATE VIEW `d90`.`tvshowview`
- AS SELECT
- `tvshow`.`idShow` AS `idShow`,
- `tvshow`.`c00` AS `c00`,
- `tvshow`.`c01` AS `c01`,
- `tvshow`.`c02` AS `c02`,
- `tvshow`.`c03` AS `c03`,
- `tvshow`.`c04` AS `c04`,
- `tvshow`.`c05` AS `c05`,
- `tvshow`.`c06` AS `c06`,
- `tvshow`.`c07` AS `c07`,
- `tvshow`.`c08` AS `c08`,
- `tvshow`.`c09` AS `c09`,
- `tvshow`.`c10` AS `c10`,
- `tvshow`.`c11` AS `c11`,
- `tvshow`.`c12` AS `c12`,
- `tvshow`.`c13` AS `c13`,
- `tvshow`.`c14` AS `c14`,
- `tvshow`.`c15` AS `c15`,
- `tvshow`.`c16` AS `c16`,
- `tvshow`.`c17` AS `c17`,
- `tvshow`.`c18` AS `c18`,
- `tvshow`.`c19` AS `c19`,
- `tvshow`.`c20` AS `c20`,
- `tvshow`.`c21` AS `c21`,
- `tvshow`.`c22` AS `c22`,
- `tvshow`.`c23` AS `c23`,
- `path`.`idParentPath` AS `idParentPath`,
- `path`.`strPath` AS `strPath`,
- `path`.`dateAdded` AS `dateAdded`,max(`files`.`lastPlayed`) AS `lastPlayed`,nullif(count(`episode`.`c12`),0) AS `totalCount`,count(`files`.`playCount`) AS `watchedcount`,nullif(count(distinct `episode`.`c12`),0) AS `totalSeasons`
- FROM ((((`d90`.`tvshow` left join `d90`.`tvshowlinkpath` on((`tvshowlinkpath`.`idShow` = `tvshow`.`idShow`))) left join `d90`.`path` on((`path`.`idPath` = `tvshowlinkpath`.`idPath`))) left join `d90`.`episode` on((`episode`.`idShow` = `tvshow`.`idShow`))) left join `d90`.`files` on((`files`.`idFile` = `episode`.`idFile`))) group by `tvshow`.`idShow`;
- CREATE DATABASE e90;
- CREATE VIEW `e90`.`actorlinkepisode` AS SELECT * FROM `a90`.`actorlinkepisode`;
- CREATE VIEW `e90`.`actorlinkmovie` AS SELECT * FROM `a90`.`actorlinkmovie`;
- CREATE VIEW `e90`.`actorlinktvshow` AS SELECT * FROM `a90`.`actorlinktvshow`;
- CREATE VIEW `e90`.`actors` AS SELECT * FROM `a90`.`actors`;
- CREATE VIEW `e90`.`art` AS SELECT * FROM `a90`.`art`;
- CREATE VIEW `e90`.`artistlinkmusicvideo` AS SELECT * FROM `a90`.`artistlinkmusicvideo`;
- CREATE VIEW `e90`.`country` AS SELECT * FROM `a90`.`country`;
- CREATE VIEW `e90`.`countrylinkmovie` AS SELECT * FROM `a90`.`countrylinkmovie`;
- CREATE VIEW `e90`.`directorlinkepisode` AS SELECT * FROM `a90`.`directorlinkepisode`;
- CREATE VIEW `e90`.`directorlinkmovie` AS SELECT * FROM `a90`.`directorlinkmovie`;
- CREATE VIEW `e90`.`directorlinkmusicvideo` AS SELECT * FROM `a90`.`directorlinkmusicvideo`;
- CREATE VIEW `e90`.`directorlinktvshow` AS SELECT * FROM `a90`.`directorlinktvshow`;
- CREATE VIEW `e90`.`episode` AS SELECT * FROM `a90`.`episode`;
- CREATE VIEW `e90`.`genre` AS SELECT * FROM `a90`.`genre`;
- CREATE VIEW `e90`.`genrelinkmovie` AS SELECT * FROM `a90`.`genrelinkmovie`;
- CREATE VIEW `e90`.`genrelinkmusicvideo` AS SELECT * FROM `a90`.`genrelinkmusicvideo`;
- CREATE VIEW `e90`.`genrelinktvshow` AS SELECT * FROM `a90`.`genrelinktvshow`;
- CREATE VIEW `e90`.`movie` AS SELECT * FROM `a90`.`movie`;
- CREATE VIEW `e90`.`movielinktvshow` AS SELECT * FROM `a90`.`movielinktvshow`;
- CREATE VIEW `e90`.`musicvideo` AS SELECT * FROM `a90`.`musicvideo`;
- CREATE VIEW `e90`.`path` AS SELECT * FROM `a90`.`path`;
- CREATE VIEW `e90`.`seasons` AS SELECT * FROM `a90`.`seasons`;
- CREATE VIEW `e90`.`sets` AS SELECT * FROM `a90`.`sets`;
- CREATE VIEW `e90`.`settings` AS SELECT * FROM `a90`.`settings`;
- CREATE VIEW `e90`.`stacktimes` AS SELECT * FROM `a90`.`stacktimes`;
- CREATE VIEW `e90`.`streamdetails` AS SELECT * FROM `a90`.`streamdetails`;
- CREATE VIEW `e90`.`studio` AS SELECT * FROM `a90`.`studio`;
- CREATE VIEW `e90`.`studiolinkmovie` AS SELECT * FROM `a90`.`studiolinkmovie`;
- CREATE VIEW `e90`.`studiolinkmusicvideo` AS SELECT * FROM `a90`.`studiolinkmusicvideo`;
- CREATE VIEW `e90`.`studiolinktvshow` AS SELECT * FROM `a90`.`studiolinktvshow`;
- CREATE VIEW `e90`.`tag` AS SELECT * FROM `a90`.`tag`;
- CREATE VIEW `e90`.`taglinks` AS SELECT * FROM `a90`.`taglinks`;
- CREATE VIEW `e90`.`tvshow` AS SELECT * FROM `a90`.`tvshow`;
- CREATE VIEW `e90`.`tvshowlinkpath` AS SELECT * FROM `a90`.`tvshowlinkpath`;
- CREATE VIEW `e90`.`version` AS SELECT * FROM `a90`.`version`;
- CREATE VIEW `e90`.`writerlinkepisode` AS SELECT * FROM `a90`.`writerlinkepisode`;
- CREATE VIEW `e90`.`writerlinkmovie` AS SELECT * FROM `a90`.`writerlinkmovie`;
- CREATE VIEW `e90`.`files`
- AS SELECT
- `a90`.`globalfiles`.`idFile` AS `idFile`,
- `a90`.`globalfiles`.`idPath` AS `idPath`,
- `a90`.`globalfiles`.`strFilename` AS `strFilename`,
- `a90`.`globalfiles`.`playCount5` AS `playCount`,
- `a90`.`globalfiles`.`lastPlayed5` AS `lastPlayed`,
- `a90`.`globalfiles`.`dateAdded` AS `dateAdded`
- FROM `a90`.`globalfiles`;
- CREATE TABLE `e90`.`bookmark` (
- `idBookmark` int(11) NOT NULL AUTO_INCREMENT,
- `idFile` int(11) DEFAULT NULL,
- `timeInSeconds` double DEFAULT NULL,
- `totalTimeInSeconds` double DEFAULT NULL,
- `thumbNailImage` text,
- `player` text,
- `playerState` text,
- `type` int(11) DEFAULT NULL,
- PRIMARY KEY (`idBookmark`),
- KEY `ix_bookmark` (`idFile`,`type`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- CREATE VIEW `e90`.`episodeview`
- AS SELECT
- `episode`.`idEpisode` AS `idEpisode`,
- `episode`.`idFile` AS `idFile`,
- `episode`.`c00` AS `c00`,
- `episode`.`c01` AS `c01`,
- `episode`.`c02` AS `c02`,
- `episode`.`c03` AS `c03`,
- `episode`.`c04` AS `c04`,
- `episode`.`c05` AS `c05`,
- `episode`.`c06` AS `c06`,
- `episode`.`c07` AS `c07`,
- `episode`.`c08` AS `c08`,
- `episode`.`c09` AS `c09`,
- `episode`.`c10` AS `c10`,
- `episode`.`c11` AS `c11`,
- `episode`.`c12` AS `c12`,
- `episode`.`c13` AS `c13`,
- `episode`.`c14` AS `c14`,
- `episode`.`c15` AS `c15`,
- `episode`.`c16` AS `c16`,
- `episode`.`c17` AS `c17`,
- `episode`.`c18` AS `c18`,
- `episode`.`c19` AS `c19`,
- `episode`.`c20` AS `c20`,
- `episode`.`c21` AS `c21`,
- `episode`.`c22` AS `c22`,
- `episode`.`c23` AS `c23`,
- `episode`.`idShow` AS `idShow`,
- `files`.`strFilename` AS `strFileName`,
- `path`.`strPath` AS `strPath`,
- `files`.`playCount` AS `playCount`,
- `files`.`lastPlayed` AS `lastPlayed`,
- `files`.`dateAdded` AS `dateAdded`,
- `tvshow`.`c00` AS `strTitle`,
- `tvshow`.`c14` AS `strStudio`,
- `tvshow`.`c05` AS `premiered`,
- `tvshow`.`c13` AS `mpaa`,
- `tvshow`.`c16` AS `strShowPath`,
- `e90`.`bookmark`.`timeInSeconds` AS `resumeTimeInSeconds`,
- `e90`.`bookmark`.`totalTimeInSeconds` AS `totalTimeInSeconds`,
- `seasons`.`idSeason` AS `idSeason`
- FROM (((((`e90`.`episode` join `e90`.`files` on((`files`.`idFile` = `episode`.`idFile`))) join `e90`.`tvshow` on((`tvshow`.`idShow` = `episode`.`idShow`))) left join `e90`.`seasons` on(((`seasons`.`idShow` = `episode`.`idShow`) and (`seasons`.`season` = `episode`.`c12`)))) join `e90`.`path` on((`files`.`idPath` = `path`.`idPath`))) left join `e90`.`bookmark` on(((`e90`.`bookmark`.`idFile` = `episode`.`idFile`) and (`e90`.`bookmark`.`type` = 1))));
- CREATE VIEW `e90`.`movieview`
- AS SELECT
- `movie`.`idMovie` AS `idMovie`,
- `movie`.`idFile` AS `idFile`,
- `movie`.`c00` AS `c00`,
- `movie`.`c01` AS `c01`,
- `movie`.`c02` AS `c02`,
- `movie`.`c03` AS `c03`,
- `movie`.`c04` AS `c04`,
- `movie`.`c05` AS `c05`,
- `movie`.`c06` AS `c06`,
- `movie`.`c07` AS `c07`,
- `movie`.`c08` AS `c08`,
- `movie`.`c09` AS `c09`,
- `movie`.`c10` AS `c10`,
- `movie`.`c11` AS `c11`,
- `movie`.`c12` AS `c12`,
- `movie`.`c13` AS `c13`,
- `movie`.`c14` AS `c14`,
- `movie`.`c15` AS `c15`,
- `movie`.`c16` AS `c16`,
- `movie`.`c17` AS `c17`,
- `movie`.`c18` AS `c18`,
- `movie`.`c19` AS `c19`,
- `movie`.`c20` AS `c20`,
- `movie`.`c21` AS `c21`,
- `movie`.`c22` AS `c22`,
- `movie`.`c23` AS `c23`,
- `movie`.`idSet` AS `idSet`,
- `sets`.`strSet` AS `strSet`,
- `files`.`strFilename` AS `strFileName`,
- `path`.`strPath` AS `strPath`,
- `files`.`playCount` AS `playCount`,
- `files`.`lastPlayed` AS `lastPlayed`,
- `files`.`dateAdded` AS `dateAdded`,
- `e90`.`bookmark`.`timeInSeconds` AS `resumeTimeInSeconds`,
- `e90`.`bookmark`.`totalTimeInSeconds` AS `totalTimeInSeconds`
- FROM ((((`e90`.`movie` left join `e90`.`sets` on((`sets`.`idSet` = `movie`.`idSet`))) join `e90`.`files` on((`files`.`idFile` = `movie`.`idFile`))) join `e90`.`path` on((`path`.`idPath` = `files`.`idPath`))) left join `e90`.`bookmark` on(((`e90`.`bookmark`.`idFile` = `movie`.`idFile`) and (`e90`.`bookmark`.`type` = 1))));
- CREATE VIEW `e90`.`musicvideoview`
- AS SELECT
- `musicvideo`.`idMVideo` AS `idMVideo`,
- `musicvideo`.`idFile` AS `idFile`,
- `musicvideo`.`c00` AS `c00`,
- `musicvideo`.`c01` AS `c01`,
- `musicvideo`.`c02` AS `c02`,
- `musicvideo`.`c03` AS `c03`,
- `musicvideo`.`c04` AS `c04`,
- `musicvideo`.`c05` AS `c05`,
- `musicvideo`.`c06` AS `c06`,
- `musicvideo`.`c07` AS `c07`,
- `musicvideo`.`c08` AS `c08`,
- `musicvideo`.`c09` AS `c09`,
- `musicvideo`.`c10` AS `c10`,
- `musicvideo`.`c11` AS `c11`,
- `musicvideo`.`c12` AS `c12`,
- `musicvideo`.`c13` AS `c13`,
- `musicvideo`.`c14` AS `c14`,
- `musicvideo`.`c15` AS `c15`,
- `musicvideo`.`c16` AS `c16`,
- `musicvideo`.`c17` AS `c17`,
- `musicvideo`.`c18` AS `c18`,
- `musicvideo`.`c19` AS `c19`,
- `musicvideo`.`c20` AS `c20`,
- `musicvideo`.`c21` AS `c21`,
- `musicvideo`.`c22` AS `c22`,
- `musicvideo`.`c23` AS `c23`,
- `files`.`strFilename` AS `strFileName`,
- `path`.`strPath` AS `strPath`,
- `files`.`playCount` AS `playCount`,
- `files`.`lastPlayed` AS `lastPlayed`,
- `files`.`dateAdded` AS `dateAdded`,
- `e90`.`bookmark`.`timeInSeconds` AS `resumeTimeInSeconds`,
- `e90`.`bookmark`.`totalTimeInSeconds` AS `totalTimeInSeconds`
- FROM (((`e90`.`musicvideo` join `e90`.`files` on((`files`.`idFile` = `musicvideo`.`idFile`))) join `e90`.`path` on((`path`.`idPath` = `files`.`idPath`))) left join `e90`.`bookmark` on(((`e90`.`bookmark`.`idFile` = `musicvideo`.`idFile`) and (`e90`.`bookmark`.`type` = 1))));
- CREATE VIEW `e90`.`tvshowview`
- AS SELECT
- `tvshow`.`idShow` AS `idShow`,
- `tvshow`.`c00` AS `c00`,
- `tvshow`.`c01` AS `c01`,
- `tvshow`.`c02` AS `c02`,
- `tvshow`.`c03` AS `c03`,
- `tvshow`.`c04` AS `c04`,
- `tvshow`.`c05` AS `c05`,
- `tvshow`.`c06` AS `c06`,
- `tvshow`.`c07` AS `c07`,
- `tvshow`.`c08` AS `c08`,
- `tvshow`.`c09` AS `c09`,
- `tvshow`.`c10` AS `c10`,
- `tvshow`.`c11` AS `c11`,
- `tvshow`.`c12` AS `c12`,
- `tvshow`.`c13` AS `c13`,
- `tvshow`.`c14` AS `c14`,
- `tvshow`.`c15` AS `c15`,
- `tvshow`.`c16` AS `c16`,
- `tvshow`.`c17` AS `c17`,
- `tvshow`.`c18` AS `c18`,
- `tvshow`.`c19` AS `c19`,
- `tvshow`.`c20` AS `c20`,
- `tvshow`.`c21` AS `c21`,
- `tvshow`.`c22` AS `c22`,
- `tvshow`.`c23` AS `c23`,
- `path`.`idParentPath` AS `idParentPath`,
- `path`.`strPath` AS `strPath`,
- `path`.`dateAdded` AS `dateAdded`,max(`files`.`lastPlayed`) AS `lastPlayed`,nullif(count(`episode`.`c12`),0) AS `totalCount`,count(`files`.`playCount`) AS `watchedcount`,nullif(count(distinct `episode`.`c12`),0) AS `totalSeasons`
- FROM ((((`e90`.`tvshow` left join `e90`.`tvshowlinkpath` on((`tvshowlinkpath`.`idShow` = `tvshow`.`idShow`))) left join `e90`.`path` on((`path`.`idPath` = `tvshowlinkpath`.`idPath`))) left join `e90`.`episode` on((`episode`.`idShow` = `tvshow`.`idShow`))) left join `e90`.`files` on((`files`.`idFile` = `episode`.`idFile`))) group by `tvshow`.`idShow`;
- RENAME TABLE `a48`.`song` to `a48`.`globalsong`;
- ALTER TABLE `a48`.`globalsong` CHANGE iTimesPlayed iTimesPlayed1 INT;
- ALTER TABLE `a48`.`globalsong` ADD iTimesPlayed2 INT(11) AFTER iTimesPlayed1;
- ALTER TABLE `a48`.`globalsong` ADD iTimesPlayed3 INT(11) AFTER iTimesPlayed2;
- ALTER TABLE `a48`.`globalsong` ADD iTimesPlayed4 INT(11) AFTER iTimesPlayed3;
- ALTER TABLE `a48`.`globalsong` ADD iTimesPlayed5 INT(11) AFTER iTimesPlayed4;
- ALTER TABLE `a48`.`globalsong` CHANGE lastPlayed lastPlayed1 VARCHAR(20);
- ALTER TABLE `a48`.`globalsong` ADD lastPlayed2 VARCHAR(20) AFTER lastPlayed1;
- ALTER TABLE `a48`.`globalsong` ADD lastPlayed3 VARCHAR(20) AFTER lastPlayed2;
- ALTER TABLE `a48`.`globalsong` ADD lastPlayed4 VARCHAR(20) AFTER lastPlayed3;
- ALTER TABLE `a48`.`globalsong` ADD lastPlayed5 VARCHAR(20) AFTER lastPlayed4;
- CREATE VIEW `a48`.`song`
- AS SELECT
- `a48`.`globalsong`.`idSong` AS `idSong`,
- `a48`.`globalsong`.`idAlbum` AS `idAlbum`,
- `a48`.`globalsong`.`idPath` AS `idPath`,
- `a48`.`globalsong`.`strArtists` AS `strArtists`,
- `a48`.`globalsong`.`strGenres` AS `strGenres`,
- `a48`.`globalsong`.`strTitle` AS `strTitle`,
- `a48`.`globalsong`.`iTrack` AS `iTrack`,
- `a48`.`globalsong`.`iDuration` AS `iDuration`,
- `a48`.`globalsong`.`iYear` AS `iYear`,
- `a48`.`globalsong`.`dwFileNameCRC` AS `dwFileNameCRC`,
- `a48`.`globalsong`.`strFileName` AS `strFileName`,
- `a48`.`globalsong`.`strMusicBrainzTrackID` AS `strMusicBrainzTrackID`,
- `a48`.`globalsong`.`iTimesPlayed1` AS `iTimesPlayed`,
- `a48`.`globalsong`.`iStartOffset` AS `iStartOffset`,
- `a48`.`globalsong`.`iEndOffset` AS `iEndOffset`,
- `a48`.`globalsong`.`idThumb` AS `idThumb`,
- `a48`.`globalsong`.`lastplayed1` AS `lastplayed`,
- `a48`.`globalsong`.`comment` AS `comment`,
- `a48`.`globalsong`.`rating` AS `rating`
- FROM `a48`.`globalsong`;
- CREATE DATABASE b48;
- CREATE VIEW `b48`.`album` AS SELECT * FROM `a48`.`album`;
- CREATE VIEW `b48`.`album_artist` AS SELECT * FROM `a48`.`album_artist`;
- CREATE VIEW `b48`.`album_genre` AS SELECT * FROM `a48`.`album_genre`;
- CREATE VIEW `b48`.`albuminfosong` AS SELECT * FROM `a48`.`albuminfosong`;
- CREATE VIEW `b48`.`art` AS SELECT * FROM `a48`.`art`;
- CREATE VIEW `b48`.`artist` AS SELECT * FROM `a48`.`artist`;
- CREATE VIEW `b48`.`content` AS SELECT * FROM `a48`.`content`;
- CREATE VIEW `b48`.`discography` AS SELECT * FROM `a48`.`discography`;
- CREATE VIEW `b48`.`genre` AS SELECT * FROM `a48`.`genre`;
- CREATE VIEW `b48`.`karaokedata` AS SELECT * FROM `a48`.`karaokedata`;
- CREATE VIEW `b48`.`path` AS SELECT * FROM `a48`.`path`;
- CREATE VIEW `b48`.`song_artist` AS SELECT * FROM `a48`.`song_artist`;
- CREATE VIEW `b48`.`song_genre` AS SELECT * FROM `a48`.`song_genre`;
- CREATE VIEW `b48`.`version` AS SELECT * FROM `a48`.`version`;
- CREATE VIEW `b48`.`song`
- AS SELECT
- `a48`.`globalsong`.`idSong` AS `idSong`,
- `a48`.`globalsong`.`idAlbum` AS `idAlbum`,
- `a48`.`globalsong`.`idPath` AS `idPath`,
- `a48`.`globalsong`.`strArtists` AS `strArtists`,
- `a48`.`globalsong`.`strGenres` AS `strGenres`,
- `a48`.`globalsong`.`strTitle` AS `strTitle`,
- `a48`.`globalsong`.`iTrack` AS `iTrack`,
- `a48`.`globalsong`.`iDuration` AS `iDuration`,
- `a48`.`globalsong`.`iYear` AS `iYear`,
- `a48`.`globalsong`.`dwFileNameCRC` AS `dwFileNameCRC`,
- `a48`.`globalsong`.`strFileName` AS `strFileName`,
- `a48`.`globalsong`.`strMusicBrainzTrackID` AS `strMusicBrainzTrackID`,
- `a48`.`globalsong`.`iTimesPlayed2` AS `iTimesPlayed`,
- `a48`.`globalsong`.`iStartOffset` AS `iStartOffset`,
- `a48`.`globalsong`.`iEndOffset` AS `iEndOffset`,
- `a48`.`globalsong`.`idThumb` AS `idThumb`,
- `a48`.`globalsong`.`lastplayed2` AS `lastplayed`,
- `a48`.`globalsong`.`comment` AS `comment`,
- `a48`.`globalsong`.`rating` AS `rating`
- FROM `a48`.`globalsong`;
- CREATE VIEW `b48`.`albumartistview`
- AS SELECT
- `album_artist`.`idAlbum` AS `idAlbum`,
- `album_artist`.`idArtist` AS `idArtist`,
- `artist`.`strArtist` AS `strArtist`,
- `artist`.`strMusicBrainzArtistID` AS `strMusicBrainzArtistID`,
- `album_artist`.`boolFeatured` AS `boolFeatured`,
- `album_artist`.`strJoinPhrase` AS `strJoinPhrase`,
- `album_artist`.`iOrder` AS `iOrder`
- FROM (`b48`.`album_artist` join `b48`.`artist` on((`album_artist`.`idArtist` = `artist`.`idArtist`)));
- CREATE VIEW `b48`.`albumview`
- AS SELECT
- `album`.`idAlbum` AS `idAlbum`,
- `album`.`strAlbum` AS `strAlbum`,
- `album`.`strMusicBrainzAlbumID` AS `strMusicBrainzAlbumID`,
- `album`.`strArtists` AS `strArtists`,
- `album`.`strGenres` AS `strGenres`,
- `album`.`iYear` AS `iYear`,
- `album`.`strMoods` AS `strMoods`,
- `album`.`strStyles` AS `strStyles`,
- `album`.`strThemes` AS `strThemes`,
- `album`.`strReview` AS `strReview`,
- `album`.`strLabel` AS `strLabel`,
- `album`.`strType` AS `strType`,
- `album`.`strImage` AS `strImage`,
- `album`.`iRating` AS `iRating`,
- `album`.`bCompilation` AS `bCompilation`,min(`song`.`iTimesPlayed`) AS `iTimesPlayed`
- FROM (`b48`.`album` left join `b48`.`song` on((`album`.`idAlbum` = `song`.`idAlbum`))) group by `album`.`idAlbum`;
- CREATE VIEW `b48`.`artistview`
- AS SELECT
- `artist`.`idArtist` AS `idArtist`,
- `artist`.`strArtist` AS `strArtist`,
- `artist`.`strMusicBrainzArtistID` AS `strMusicBrainzArtistID`,
- `artist`.`strBorn` AS `strBorn`,
- `artist`.`strFormed` AS `strFormed`,
- `artist`.`strGenres` AS `strGenres`,
- `artist`.`strMoods` AS `strMoods`,
- `artist`.`strStyles` AS `strStyles`,
- `artist`.`strInstruments` AS `strInstruments`,
- `artist`.`strBiography` AS `strBiography`,
- `artist`.`strDied` AS `strDied`,
- `artist`.`strDisbanded` AS `strDisbanded`,
- `artist`.`strYearsActive` AS `strYearsActive`,
- `artist`.`strImage` AS `strImage`,
- `artist`.`strFanart` AS `strFanart`
- FROM `b48`.`artist`;
- CREATE VIEW `b48`.`songartistview`
- AS SELECT
- `song_artist`.`idSong` AS `idSong`,
- `song_artist`.`idArtist` AS `idArtist`,
- `artist`.`strArtist` AS `strArtist`,
- `artist`.`strMusicBrainzArtistID` AS `strMusicBrainzArtistID`,
- `song_artist`.`boolFeatured` AS `boolFeatured`,
- `song_artist`.`strJoinPhrase` AS `strJoinPhrase`,
- `song_artist`.`iOrder` AS `iOrder`
- FROM (`b48`.`song_artist` join `b48`.`artist` on((`song_artist`.`idArtist` = `artist`.`idArtist`)));
- CREATE VIEW `b48`.`songview`
- AS SELECT
- `song`.`idSong` AS `idSong`,
- `song`.`strArtists` AS `strArtists`,
- `song`.`strGenres` AS `strGenres`,
- `song`.`strTitle` AS `strTitle`,
- `song`.`iTrack` AS `iTrack`,
- `song`.`iDuration` AS `iDuration`,
- `song`.`iYear` AS `iYear`,
- `song`.`dwFileNameCRC` AS `dwFileNameCRC`,
- `song`.`strFileName` AS `strFileName`,
- `song`.`strMusicBrainzTrackID` AS `strMusicBrainzTrackID`,
- `song`.`iTimesPlayed` AS `iTimesPlayed`,
- `song`.`iStartOffset` AS `iStartOffset`,
- `song`.`iEndOffset` AS `iEndOffset`,
- `song`.`lastplayed` AS `lastplayed`,
- `song`.`rating` AS `rating`,
- `song`.`comment` AS `comment`,
- `song`.`idAlbum` AS `idAlbum`,
- `album`.`strAlbum` AS `strAlbum`,
- `path`.`strPath` AS `strPath`,
- `karaokedata`.`iKaraNumber` AS `iKaraNumber`,
- `karaokedata`.`iKaraDelay` AS `iKaraDelay`,
- `karaokedata`.`strKaraEncoding` AS `strKaraEncoding`,
- `album`.`bCompilation` AS `bCompilation`,
- `album`.`strArtists` AS `strAlbumArtists`
- FROM (((`b48`.`song` join `b48`.`album` on((`song`.`idAlbum` = `album`.`idAlbum`))) join `b48`.`path` on((`song`.`idPath` = `path`.`idPath`))) left join `b48`.`karaokedata` on((`song`.`idSong` = `karaokedata`.`idSong`)));
- CREATE DATABASE c48;
- CREATE VIEW `c48`.`album` AS SELECT * FROM `a48`.`album`;
- CREATE VIEW `c48`.`album_artist` AS SELECT * FROM `a48`.`album_artist`;
- CREATE VIEW `c48`.`album_genre` AS SELECT * FROM `a48`.`album_genre`;
- CREATE VIEW `c48`.`albuminfosong` AS SELECT * FROM `a48`.`albuminfosong`;
- CREATE VIEW `c48`.`art` AS SELECT * FROM `a48`.`art`;
- CREATE VIEW `c48`.`artist` AS SELECT * FROM `a48`.`artist`;
- CREATE VIEW `c48`.`content` AS SELECT * FROM `a48`.`content`;
- CREATE VIEW `c48`.`discography` AS SELECT * FROM `a48`.`discography`;
- CREATE VIEW `c48`.`genre` AS SELECT * FROM `a48`.`genre`;
- CREATE VIEW `c48`.`karaokedata` AS SELECT * FROM `a48`.`karaokedata`;
- CREATE VIEW `c48`.`path` AS SELECT * FROM `a48`.`path`;
- CREATE VIEW `c48`.`song_artist` AS SELECT * FROM `a48`.`song_artist`;
- CREATE VIEW `c48`.`song_genre` AS SELECT * FROM `a48`.`song_genre`;
- CREATE VIEW `c48`.`version` AS SELECT * FROM `a48`.`version`;
- CREATE VIEW `c48`.`song`
- AS SELECT
- `a48`.`globalsong`.`idSong` AS `idSong`,
- `a48`.`globalsong`.`idAlbum` AS `idAlbum`,
- `a48`.`globalsong`.`idPath` AS `idPath`,
- `a48`.`globalsong`.`strArtists` AS `strArtists`,
- `a48`.`globalsong`.`strGenres` AS `strGenres`,
- `a48`.`globalsong`.`strTitle` AS `strTitle`,
- `a48`.`globalsong`.`iTrack` AS `iTrack`,
- `a48`.`globalsong`.`iDuration` AS `iDuration`,
- `a48`.`globalsong`.`iYear` AS `iYear`,
- `a48`.`globalsong`.`dwFileNameCRC` AS `dwFileNameCRC`,
- `a48`.`globalsong`.`strFileName` AS `strFileName`,
- `a48`.`globalsong`.`strMusicBrainzTrackID` AS `strMusicBrainzTrackID`,
- `a48`.`globalsong`.`iTimesPlayed3` AS `iTimesPlayed`,
- `a48`.`globalsong`.`iStartOffset` AS `iStartOffset`,
- `a48`.`globalsong`.`iEndOffset` AS `iEndOffset`,
- `a48`.`globalsong`.`idThumb` AS `idThumb`,
- `a48`.`globalsong`.`lastplayed3` AS `lastplayed`,
- `a48`.`globalsong`.`comment` AS `comment`,
- `a48`.`globalsong`.`rating` AS `rating`
- FROM `a48`.`globalsong`;
- CREATE VIEW `c48`.`albumartistview`
- AS SELECT
- `album_artist`.`idAlbum` AS `idAlbum`,
- `album_artist`.`idArtist` AS `idArtist`,
- `artist`.`strArtist` AS `strArtist`,
- `artist`.`strMusicBrainzArtistID` AS `strMusicBrainzArtistID`,
- `album_artist`.`boolFeatured` AS `boolFeatured`,
- `album_artist`.`strJoinPhrase` AS `strJoinPhrase`,
- `album_artist`.`iOrder` AS `iOrder`
- FROM (`c48`.`album_artist` join `c48`.`artist` on((`album_artist`.`idArtist` = `artist`.`idArtist`)));
- CREATE VIEW `c48`.`albumview`
- AS SELECT
- `album`.`idAlbum` AS `idAlbum`,
- `album`.`strAlbum` AS `strAlbum`,
- `album`.`strMusicBrainzAlbumID` AS `strMusicBrainzAlbumID`,
- `album`.`strArtists` AS `strArtists`,
- `album`.`strGenres` AS `strGenres`,
- `album`.`iYear` AS `iYear`,
- `album`.`strMoods` AS `strMoods`,
- `album`.`strStyles` AS `strStyles`,
- `album`.`strThemes` AS `strThemes`,
- `album`.`strReview` AS `strReview`,
- `album`.`strLabel` AS `strLabel`,
- `album`.`strType` AS `strType`,
- `album`.`strImage` AS `strImage`,
- `album`.`iRating` AS `iRating`,
- `album`.`bCompilation` AS `bCompilation`,min(`song`.`iTimesPlayed`) AS `iTimesPlayed`
- FROM (`c48`.`album` left join `c48`.`song` on((`album`.`idAlbum` = `song`.`idAlbum`))) group by `album`.`idAlbum`;
- CREATE VIEW `c48`.`artistview`
- AS SELECT
- `artist`.`idArtist` AS `idArtist`,
- `artist`.`strArtist` AS `strArtist`,
- `artist`.`strMusicBrainzArtistID` AS `strMusicBrainzArtistID`,
- `artist`.`strBorn` AS `strBorn`,
- `artist`.`strFormed` AS `strFormed`,
- `artist`.`strGenres` AS `strGenres`,
- `artist`.`strMoods` AS `strMoods`,
- `artist`.`strStyles` AS `strStyles`,
- `artist`.`strInstruments` AS `strInstruments`,
- `artist`.`strBiography` AS `strBiography`,
- `artist`.`strDied` AS `strDied`,
- `artist`.`strDisbanded` AS `strDisbanded`,
- `artist`.`strYearsActive` AS `strYearsActive`,
- `artist`.`strImage` AS `strImage`,
- `artist`.`strFanart` AS `strFanart`
- FROM `c48`.`artist`;
- CREATE VIEW `c48`.`songartistview`
- AS SELECT
- `song_artist`.`idSong` AS `idSong`,
- `song_artist`.`idArtist` AS `idArtist`,
- `artist`.`strArtist` AS `strArtist`,
- `artist`.`strMusicBrainzArtistID` AS `strMusicBrainzArtistID`,
- `song_artist`.`boolFeatured` AS `boolFeatured`,
- `song_artist`.`strJoinPhrase` AS `strJoinPhrase`,
- `song_artist`.`iOrder` AS `iOrder`
- FROM (`c48`.`song_artist` join `c48`.`artist` on((`song_artist`.`idArtist` = `artist`.`idArtist`)));
- CREATE VIEW `c48`.`songview`
- AS SELECT
- `song`.`idSong` AS `idSong`,
- `song`.`strArtists` AS `strArtists`,
- `song`.`strGenres` AS `strGenres`,
- `song`.`strTitle` AS `strTitle`,
- `song`.`iTrack` AS `iTrack`,
- `song`.`iDuration` AS `iDuration`,
- `song`.`iYear` AS `iYear`,
- `song`.`dwFileNameCRC` AS `dwFileNameCRC`,
- `song`.`strFileName` AS `strFileName`,
- `song`.`strMusicBrainzTrackID` AS `strMusicBrainzTrackID`,
- `song`.`iTimesPlayed` AS `iTimesPlayed`,
- `song`.`iStartOffset` AS `iStartOffset`,
- `song`.`iEndOffset` AS `iEndOffset`,
- `song`.`lastplayed` AS `lastplayed`,
- `song`.`rating` AS `rating`,
- `song`.`comment` AS `comment`,
- `song`.`idAlbum` AS `idAlbum`,
- `album`.`strAlbum` AS `strAlbum`,
- `path`.`strPath` AS `strPath`,
- `karaokedata`.`iKaraNumber` AS `iKaraNumber`,
- `karaokedata`.`iKaraDelay` AS `iKaraDelay`,
- `karaokedata`.`strKaraEncoding` AS `strKaraEncoding`,
- `album`.`bCompilation` AS `bCompilation`,
- `album`.`strArtists` AS `strAlbumArtists`
- FROM (((`c48`.`song` join `c48`.`album` on((`song`.`idAlbum` = `album`.`idAlbum`))) join `c48`.`path` on((`song`.`idPath` = `path`.`idPath`))) left join `c48`.`karaokedata` on((`song`.`idSong` = `karaokedata`.`idSong`)));
- CREATE DATABASE d48;
- CREATE VIEW `d48`.`album` AS SELECT * FROM `a48`.`album`;
- CREATE VIEW `d48`.`album_artist` AS SELECT * FROM `a48`.`album_artist`;
- CREATE VIEW `d48`.`album_genre` AS SELECT * FROM `a48`.`album_genre`;
- CREATE VIEW `d48`.`albuminfosong` AS SELECT * FROM `a48`.`albuminfosong`;
- CREATE VIEW `d48`.`art` AS SELECT * FROM `a48`.`art`;
- CREATE VIEW `d48`.`artist` AS SELECT * FROM `a48`.`artist`;
- CREATE VIEW `d48`.`content` AS SELECT * FROM `a48`.`content`;
- CREATE VIEW `d48`.`discography` AS SELECT * FROM `a48`.`discography`;
- CREATE VIEW `d48`.`genre` AS SELECT * FROM `a48`.`genre`;
- CREATE VIEW `d48`.`karaokedata` AS SELECT * FROM `a48`.`karaokedata`;
- CREATE VIEW `d48`.`path` AS SELECT * FROM `a48`.`path`;
- CREATE VIEW `d48`.`song_artist` AS SELECT * FROM `a48`.`song_artist`;
- CREATE VIEW `d48`.`song_genre` AS SELECT * FROM `a48`.`song_genre`;
- CREATE VIEW `d48`.`version` AS SELECT * FROM `a48`.`version`;
- CREATE VIEW `d48`.`song`
- AS SELECT
- `a48`.`globalsong`.`idSong` AS `idSong`,
- `a48`.`globalsong`.`idAlbum` AS `idAlbum`,
- `a48`.`globalsong`.`idPath` AS `idPath`,
- `a48`.`globalsong`.`strArtists` AS `strArtists`,
- `a48`.`globalsong`.`strGenres` AS `strGenres`,
- `a48`.`globalsong`.`strTitle` AS `strTitle`,
- `a48`.`globalsong`.`iTrack` AS `iTrack`,
- `a48`.`globalsong`.`iDuration` AS `iDuration`,
- `a48`.`globalsong`.`iYear` AS `iYear`,
- `a48`.`globalsong`.`dwFileNameCRC` AS `dwFileNameCRC`,
- `a48`.`globalsong`.`strFileName` AS `strFileName`,
- `a48`.`globalsong`.`strMusicBrainzTrackID` AS `strMusicBrainzTrackID`,
- `a48`.`globalsong`.`iTimesPlayed4` AS `iTimesPlayed`,
- `a48`.`globalsong`.`iStartOffset` AS `iStartOffset`,
- `a48`.`globalsong`.`iEndOffset` AS `iEndOffset`,
- `a48`.`globalsong`.`idThumb` AS `idThumb`,
- `a48`.`globalsong`.`lastplayed4` AS `lastplayed`,
- `a48`.`globalsong`.`comment` AS `comment`,
- `a48`.`globalsong`.`rating` AS `rating`
- FROM `a48`.`globalsong`;
- CREATE VIEW `d48`.`albumartistview`
- AS SELECT
- `album_artist`.`idAlbum` AS `idAlbum`,
- `album_artist`.`idArtist` AS `idArtist`,
- `artist`.`strArtist` AS `strArtist`,
- `artist`.`strMusicBrainzArtistID` AS `strMusicBrainzArtistID`,
- `album_artist`.`boolFeatured` AS `boolFeatured`,
- `album_artist`.`strJoinPhrase` AS `strJoinPhrase`,
- `album_artist`.`iOrder` AS `iOrder`
- FROM (`d48`.`album_artist` join `d48`.`artist` on((`album_artist`.`idArtist` = `artist`.`idArtist`)));
- CREATE VIEW `d48`.`albumview`
- AS SELECT
- `album`.`idAlbum` AS `idAlbum`,
- `album`.`strAlbum` AS `strAlbum`,
- `album`.`strMusicBrainzAlbumID` AS `strMusicBrainzAlbumID`,
- `album`.`strArtists` AS `strArtists`,
- `album`.`strGenres` AS `strGenres`,
- `album`.`iYear` AS `iYear`,
- `album`.`strMoods` AS `strMoods`,
- `album`.`strStyles` AS `strStyles`,
- `album`.`strThemes` AS `strThemes`,
- `album`.`strReview` AS `strReview`,
- `album`.`strLabel` AS `strLabel`,
- `album`.`strType` AS `strType`,
- `album`.`strImage` AS `strImage`,
- `album`.`iRating` AS `iRating`,
- `album`.`bCompilation` AS `bCompilation`,min(`song`.`iTimesPlayed`) AS `iTimesPlayed`
- FROM (`d48`.`album` left join `d48`.`song` on((`album`.`idAlbum` = `song`.`idAlbum`))) group by `album`.`idAlbum`;
- CREATE VIEW `d48`.`artistview`
- AS SELECT
- `artist`.`idArtist` AS `idArtist`,
- `artist`.`strArtist` AS `strArtist`,
- `artist`.`strMusicBrainzArtistID` AS `strMusicBrainzArtistID`,
- `artist`.`strBorn` AS `strBorn`,
- `artist`.`strFormed` AS `strFormed`,
- `artist`.`strGenres` AS `strGenres`,
- `artist`.`strMoods` AS `strMoods`,
- `artist`.`strStyles` AS `strStyles`,
- `artist`.`strInstruments` AS `strInstruments`,
- `artist`.`strBiography` AS `strBiography`,
- `artist`.`strDied` AS `strDied`,
- `artist`.`strDisbanded` AS `strDisbanded`,
- `artist`.`strYearsActive` AS `strYearsActive`,
- `artist`.`strImage` AS `strImage`,
- `artist`.`strFanart` AS `strFanart`
- FROM `d48`.`artist`;
- CREATE VIEW `d48`.`songartistview`
- AS SELECT
- `song_artist`.`idSong` AS `idSong`,
- `song_artist`.`idArtist` AS `idArtist`,
- `artist`.`strArtist` AS `strArtist`,
- `artist`.`strMusicBrainzArtistID` AS `strMusicBrainzArtistID`,
- `song_artist`.`boolFeatured` AS `boolFeatured`,
- `song_artist`.`strJoinPhrase` AS `strJoinPhrase`,
- `song_artist`.`iOrder` AS `iOrder`
- FROM (`d48`.`song_artist` join `d48`.`artist` on((`song_artist`.`idArtist` = `artist`.`idArtist`)));
- CREATE VIEW `d48`.`songview`
- AS SELECT
- `song`.`idSong` AS `idSong`,
- `song`.`strArtists` AS `strArtists`,
- `song`.`strGenres` AS `strGenres`,
- `song`.`strTitle` AS `strTitle`,
- `song`.`iTrack` AS `iTrack`,
- `song`.`iDuration` AS `iDuration`,
- `song`.`iYear` AS `iYear`,
- `song`.`dwFileNameCRC` AS `dwFileNameCRC`,
- `song`.`strFileName` AS `strFileName`,
- `song`.`strMusicBrainzTrackID` AS `strMusicBrainzTrackID`,
- `song`.`iTimesPlayed` AS `iTimesPlayed`,
- `song`.`iStartOffset` AS `iStartOffset`,
- `song`.`iEndOffset` AS `iEndOffset`,
- `song`.`lastplayed` AS `lastplayed`,
- `song`.`rating` AS `rating`,
- `song`.`comment` AS `comment`,
- `song`.`idAlbum` AS `idAlbum`,
- `album`.`strAlbum` AS `strAlbum`,
- `path`.`strPath` AS `strPath`,
- `karaokedata`.`iKaraNumber` AS `iKaraNumber`,
- `karaokedata`.`iKaraDelay` AS `iKaraDelay`,
- `karaokedata`.`strKaraEncoding` AS `strKaraEncoding`,
- `album`.`bCompilation` AS `bCompilation`,
- `album`.`strArtists` AS `strAlbumArtists`
- FROM (((`d48`.`song` join `d48`.`album` on((`song`.`idAlbum` = `album`.`idAlbum`))) join `d48`.`path` on((`song`.`idPath` = `path`.`idPath`))) left join `d48`.`karaokedata` on((`song`.`idSong` = `karaokedata`.`idSong`)));
- CREATE DATABASE e48;
- CREATE VIEW `e48`.`album` AS SELECT * FROM `a48`.`album`;
- CREATE VIEW `e48`.`album_artist` AS SELECT * FROM `a48`.`album_artist`;
- CREATE VIEW `e48`.`album_genre` AS SELECT * FROM `a48`.`album_genre`;
- CREATE VIEW `e48`.`albuminfosong` AS SELECT * FROM `a48`.`albuminfosong`;
- CREATE VIEW `e48`.`art` AS SELECT * FROM `a48`.`art`;
- CREATE VIEW `e48`.`artist` AS SELECT * FROM `a48`.`artist`;
- CREATE VIEW `e48`.`content` AS SELECT * FROM `a48`.`content`;
- CREATE VIEW `e48`.`discography` AS SELECT * FROM `a48`.`discography`;
- CREATE VIEW `e48`.`genre` AS SELECT * FROM `a48`.`genre`;
- CREATE VIEW `e48`.`karaokedata` AS SELECT * FROM `a48`.`karaokedata`;
- CREATE VIEW `e48`.`path` AS SELECT * FROM `a48`.`path`;
- CREATE VIEW `e48`.`song_artist` AS SELECT * FROM `a48`.`song_artist`;
- CREATE VIEW `e48`.`song_genre` AS SELECT * FROM `a48`.`song_genre`;
- CREATE VIEW `e48`.`version` AS SELECT * FROM `a48`.`version`;
- CREATE VIEW `e48`.`song`
- AS SELECT
- `a48`.`globalsong`.`idSong` AS `idSong`,
- `a48`.`globalsong`.`idAlbum` AS `idAlbum`,
- `a48`.`globalsong`.`idPath` AS `idPath`,
- `a48`.`globalsong`.`strArtists` AS `strArtists`,
- `a48`.`globalsong`.`strGenres` AS `strGenres`,
- `a48`.`globalsong`.`strTitle` AS `strTitle`,
- `a48`.`globalsong`.`iTrack` AS `iTrack`,
- `a48`.`globalsong`.`iDuration` AS `iDuration`,
- `a48`.`globalsong`.`iYear` AS `iYear`,
- `a48`.`globalsong`.`dwFileNameCRC` AS `dwFileNameCRC`,
- `a48`.`globalsong`.`strFileName` AS `strFileName`,
- `a48`.`globalsong`.`strMusicBrainzTrackID` AS `strMusicBrainzTrackID`,
- `a48`.`globalsong`.`iTimesPlayed5` AS `iTimesPlayed`,
- `a48`.`globalsong`.`iStartOffset` AS `iStartOffset`,
- `a48`.`globalsong`.`iEndOffset` AS `iEndOffset`,
- `a48`.`globalsong`.`idThumb` AS `idThumb`,
- `a48`.`globalsong`.`lastplayed5` AS `lastplayed`,
- `a48`.`globalsong`.`comment` AS `comment`,
- `a48`.`globalsong`.`rating` AS `rating`
- FROM `a48`.`globalsong`;
- CREATE VIEW `e48`.`albumartistview`
- AS SELECT
- `album_artist`.`idAlbum` AS `idAlbum`,
- `album_artist`.`idArtist` AS `idArtist`,
- `artist`.`strArtist` AS `strArtist`,
- `artist`.`strMusicBrainzArtistID` AS `strMusicBrainzArtistID`,
- `album_artist`.`boolFeatured` AS `boolFeatured`,
- `album_artist`.`strJoinPhrase` AS `strJoinPhrase`,
- `album_artist`.`iOrder` AS `iOrder`
- FROM (`e48`.`album_artist` join `e48`.`artist` on((`album_artist`.`idArtist` = `artist`.`idArtist`)));
- CREATE VIEW `e48`.`albumview`
- AS SELECT
- `album`.`idAlbum` AS `idAlbum`,
- `album`.`strAlbum` AS `strAlbum`,
- `album`.`strMusicBrainzAlbumID` AS `strMusicBrainzAlbumID`,
- `album`.`strArtists` AS `strArtists`,
- `album`.`strGenres` AS `strGenres`,
- `album`.`iYear` AS `iYear`,
- `album`.`strMoods` AS `strMoods`,
- `album`.`strStyles` AS `strStyles`,
- `album`.`strThemes` AS `strThemes`,
- `album`.`strReview` AS `strReview`,
- `album`.`strLabel` AS `strLabel`,
- `album`.`strType` AS `strType`,
- `album`.`strImage` AS `strImage`,
- `album`.`iRating` AS `iRating`,
- `album`.`bCompilation` AS `bCompilation`,min(`song`.`iTimesPlayed`) AS `iTimesPlayed`
- FROM (`e48`.`album` left join `e48`.`song` on((`album`.`idAlbum` = `song`.`idAlbum`))) group by `album`.`idAlbum`;
- CREATE VIEW `e48`.`artistview`
- AS SELECT
- `artist`.`idArtist` AS `idArtist`,
- `artist`.`strArtist` AS `strArtist`,
- `artist`.`strMusicBrainzArtistID` AS `strMusicBrainzArtistID`,
- `artist`.`strBorn` AS `strBorn`,
- `artist`.`strFormed` AS `strFormed`,
- `artist`.`strGenres` AS `strGenres`,
- `artist`.`strMoods` AS `strMoods`,
- `artist`.`strStyles` AS `strStyles`,
- `artist`.`strInstruments` AS `strInstruments`,
- `artist`.`strBiography` AS `strBiography`,
- `artist`.`strDied` AS `strDied`,
- `artist`.`strDisbanded` AS `strDisbanded`,
- `artist`.`strYearsActive` AS `strYearsActive`,
- `artist`.`strImage` AS `strImage`,
- `artist`.`strFanart` AS `strFanart`
- FROM `e48`.`artist`;
- CREATE VIEW `e48`.`songartistview`
- AS SELECT
- `song_artist`.`idSong` AS `idSong`,
- `song_artist`.`idArtist` AS `idArtist`,
- `artist`.`strArtist` AS `strArtist`,
- `artist`.`strMusicBrainzArtistID` AS `strMusicBrainzArtistID`,
- `song_artist`.`boolFeatured` AS `boolFeatured`,
- `song_artist`.`strJoinPhrase` AS `strJoinPhrase`,
- `song_artist`.`iOrder` AS `iOrder`
- FROM (`e48`.`song_artist` join `e48`.`artist` on((`song_artist`.`idArtist` = `artist`.`idArtist`)));
- CREATE VIEW `e48`.`songview`
- AS SELECT
- `song`.`idSong` AS `idSong`,
- `song`.`strArtists` AS `strArtists`,
- `song`.`strGenres` AS `strGenres`,
- `song`.`strTitle` AS `strTitle`,
- `song`.`iTrack` AS `iTrack`,
- `song`.`iDuration` AS `iDuration`,
- `song`.`iYear` AS `iYear`,
- `song`.`dwFileNameCRC` AS `dwFileNameCRC`,
- `song`.`strFileName` AS `strFileName`,
- `song`.`strMusicBrainzTrackID` AS `strMusicBrainzTrackID`,
- `song`.`iTimesPlayed` AS `iTimesPlayed`,
- `song`.`iStartOffset` AS `iStartOffset`,
- `song`.`iEndOffset` AS `iEndOffset`,
- `song`.`lastplayed` AS `lastplayed`,
- `song`.`rating` AS `rating`,
- `song`.`comment` AS `comment`,
- `song`.`idAlbum` AS `idAlbum`,
- `album`.`strAlbum` AS `strAlbum`,
- `path`.`strPath` AS `strPath`,
- `karaokedata`.`iKaraNumber` AS `iKaraNumber`,
- `karaokedata`.`iKaraDelay` AS `iKaraDelay`,
- `karaokedata`.`strKaraEncoding` AS `strKaraEncoding`,
- `album`.`bCompilation` AS `bCompilation`,
- `album`.`strArtists` AS `strAlbumArtists`
- FROM (((`e48`.`song` join `e48`.`album` on((`song`.`idAlbum` = `album`.`idAlbum`))) join `e48`.`path` on((`song`.`idPath` = `path`.`idPath`))) left join `e48`.`karaokedata` on((`song`.`idSong` = `karaokedata`.`idSong`)));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement