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:
parent
024bf87b59
commit
352105fb77
3 changed files with 8 additions and 2 deletions
|
@ -4,7 +4,7 @@ if (file_exists("../videos/configuration.php")) {
|
|||
exit;
|
||||
}
|
||||
|
||||
$installationVersion = "10.7";
|
||||
$installationVersion = "10.8";
|
||||
|
||||
error_log("Installation: ".__LINE__." ". json_encode($_POST));
|
||||
header('Content-Type: application/json');
|
||||
|
|
|
@ -116,7 +116,7 @@ CREATE TABLE IF NOT EXISTS `videos` (
|
|||
`views_count_50` INT(11) NULL DEFAULT 0,
|
||||
`views_count_75` 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,
|
||||
`modified` DATETIME NOT NULL,
|
||||
`users_id` INT NOT NULL,
|
||||
|
|
6
updatedb/updateDb.v10.8.sql
Normal file
6
updatedb/updateDb.v10.8.sql
Normal 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;
|
Loading…
Add table
Add a link
Reference in a new issue