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

Add video made_for_kids option

This commit is contained in:
Daniel Neto 2024-01-08 11:38:06 -03:00
parent 3db5862943
commit 579a74755d
3 changed files with 7 additions and 1 deletions

View file

@ -5,7 +5,7 @@ if (file_exists("../videos/configuration.php")) {
}
$installationVersion = "14.0";
$installationVersion = "14.1";
require_once '../objects/functionSecurity.php';

View file

@ -181,6 +181,7 @@ CREATE TABLE IF NOT EXISTS `videos` (
`epg_link` VARCHAR(400) NULL,
`publish_datetime` DATETIME NULL,
`notification_datetime` DATETIME NULL,
`made_for_kids` TINYINT(1) NOT NULL DEFAULT 0,
PRIMARY KEY (`id`),
UNIQUE INDEX `clean_title_UNIQUE` (`clean_title` ASC),
INDEX `fk_videos_users_idx` (`users_id` ASC),
@ -205,6 +206,7 @@ CREATE TABLE IF NOT EXISTS `videos` (
INDEX `index_epg_link` (`epg_link` ASC),
INDEX `index25_publish` (`publish_datetime` ASC),
INDEX `index26_publish` (`notification_datetime` ASC),
INDEX `index_made_for_kids` (`made_for_kids` ASC),
CONSTRAINT `fk_videos_categories1`
FOREIGN KEY (`categories_id`)
REFERENCES `categories` (`id`)

View file

@ -0,0 +1,4 @@
ALTER TABLE `videos` ADD COLUMN `made_for_kids` TINYINT(1) NOT NULL DEFAULT 0,
ADD INDEX `index_made_for_kids` (`made_for_kids` ASC);
UPDATE configurations SET version = '14.1', modified = now() WHERE id = 1;