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

Allow different video status

This commit is contained in:
DanielnetoDotCom 2021-04-29 09:07:17 -03:00
parent 024bf87b59
commit 352105fb77
3 changed files with 8 additions and 2 deletions

View file

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

View file

@ -116,7 +116,7 @@ CREATE TABLE IF NOT EXISTS `videos` (
`views_count_50` INT(11) NULL DEFAULT 0, `views_count_50` INT(11) NULL DEFAULT 0,
`views_count_75` INT(11) NULL DEFAULT 0, `views_count_75` INT(11) NULL DEFAULT 0,
`views_count_100` INT(11) NULL DEFAULT 0, `views_count_100` INT(11) NULL DEFAULT 0,
`status` ENUM('a', 'k', 'i', 'e', 'x', 'd', 'xmp4', 'xwebm', 'xmp3', 'xogg', 'ximg', 'u', 'p', 't') NOT NULL DEFAULT 'e' COMMENT 'a = active\nk = active and encoding\ni = inactive\ne = encoding\nx = encoding error\nd = downloading\nu = Unlisted\np = private\nxmp4 = encoding mp4 error \nxwebm = encoding webm error \nxmp3 = encoding mp3 error \nxogg = encoding ogg error \nximg = get image error\nt = Transfering' , `status` VARCHAR(16) NOT NULL DEFAULT 'e' ,
`created` DATETIME NOT NULL, `created` DATETIME NOT NULL,
`modified` DATETIME NOT NULL, `modified` DATETIME NOT NULL,
`users_id` INT NOT NULL, `users_id` INT NOT NULL,

View file

@ -0,0 +1,6 @@
-- Allow differents status code
ALTER TABLE `videos`
CHANGE COLUMN `status` `status` VARCHAR(16) NOT NULL DEFAULT 'e';
UPDATE configurations SET version = '10.8', modified = now() WHERE id = 1;