mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
Count total time longer
This commit is contained in:
parent
29c24574da
commit
9e5fc74a4a
3 changed files with 14 additions and 2 deletions
|
@ -4,7 +4,7 @@ if (file_exists("../videos/configuration.php")) {
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
$installationVersion = "12.2";
|
$installationVersion = "12.3";
|
||||||
|
|
||||||
error_log("Installation: ".__LINE__." ". json_encode($_POST));
|
error_log("Installation: ".__LINE__." ". json_encode($_POST));
|
||||||
header('Content-Type: application/json');
|
header('Content-Type: application/json');
|
||||||
|
|
|
@ -173,7 +173,7 @@ CREATE TABLE IF NOT EXISTS `videos` (
|
||||||
`filepath` VARCHAR(255) NULL DEFAULT NULL,
|
`filepath` VARCHAR(255) NULL DEFAULT NULL,
|
||||||
`filesize` BIGINT(19) UNSIGNED NULL DEFAULT 0,
|
`filesize` BIGINT(19) UNSIGNED NULL DEFAULT 0,
|
||||||
`live_transmitions_history_id` INT(11) NULL DEFAULT NULL,
|
`live_transmitions_history_id` INT(11) NULL DEFAULT NULL,
|
||||||
`total_seconds_watching` INT NULL DEFAULT 0,
|
`total_seconds_watching` BIGINT(19) UNSIGNED NULL DEFAULT 0,
|
||||||
`duration_in_seconds` INT NULL,
|
`duration_in_seconds` INT NULL,
|
||||||
`likes` INT NULL,
|
`likes` INT NULL,
|
||||||
`dislikes` INT NULL,
|
`dislikes` INT NULL,
|
||||||
|
|
12
updatedb/updateDb.v12.3.sql
Normal file
12
updatedb/updateDb.v12.3.sql
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
|
||||||
|
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
|
||||||
|
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES';
|
||||||
|
|
||||||
|
ALTER TABLE `videos`
|
||||||
|
CHANGE COLUMN `total_seconds_watching` `total_seconds_watching` BIGINT(19) UNSIGNED NULL DEFAULT 0;
|
||||||
|
|
||||||
|
UPDATE configurations SET version = '12.3', modified = now() WHERE id = 1;
|
||||||
|
|
||||||
|
SET SQL_MODE=@OLD_SQL_MODE;
|
||||||
|
SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;
|
||||||
|
SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;
|
Loading…
Add table
Add a link
Reference in a new issue