diff --git a/install/checkConfiguration.php b/install/checkConfiguration.php index 7d6bf67313..dd4bee8c21 100644 --- a/install/checkConfiguration.php +++ b/install/checkConfiguration.php @@ -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'); diff --git a/install/database.sql b/install/database.sql index 80552ba629..5a06429e66 100644 --- a/install/database.sql +++ b/install/database.sql @@ -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, diff --git a/updatedb/updateDb.v10.8.sql b/updatedb/updateDb.v10.8.sql new file mode 100644 index 0000000000..909f24085d --- /dev/null +++ b/updatedb/updateDb.v10.8.sql @@ -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; \ No newline at end of file