1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 01:39:24 +02:00

Count total time longer

This commit is contained in:
DanieL 2022-12-22 16:59:00 -03:00
parent 29c24574da
commit 9e5fc74a4a
3 changed files with 14 additions and 2 deletions

View file

@ -4,7 +4,7 @@ if (file_exists("../videos/configuration.php")) {
exit;
}
$installationVersion = "12.2";
$installationVersion = "12.3";
error_log("Installation: ".__LINE__." ". json_encode($_POST));
header('Content-Type: application/json');

View file

@ -173,7 +173,7 @@ CREATE TABLE IF NOT EXISTS `videos` (
`filepath` VARCHAR(255) NULL DEFAULT NULL,
`filesize` BIGINT(19) UNSIGNED NULL DEFAULT 0,
`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,
`likes` INT NULL,
`dislikes` INT NULL,

View 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;