mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 01:39:24 +02:00
videoLink now is not limited by 255 chars
This commit is contained in:
parent
a9c12d6c3a
commit
211eeb5013
3 changed files with 887 additions and 874 deletions
|
@ -4,7 +4,7 @@ if (file_exists("../videos/configuration.php")) {
|
|||
exit;
|
||||
}
|
||||
|
||||
$installationVersion = "11.7";
|
||||
$installationVersion = "11.8";
|
||||
|
||||
error_log("Installation: ".__LINE__." ". json_encode($_POST));
|
||||
header('Content-Type: application/json');
|
||||
|
|
|
@ -157,7 +157,7 @@ CREATE TABLE IF NOT EXISTS `videos` (
|
|||
`rotation` SMALLINT NULL DEFAULT 0,
|
||||
`zoom` FLOAT NULL DEFAULT 1,
|
||||
`youtubeId` VARCHAR(45) NULL,
|
||||
`videoLink` VARCHAR(255) NULL,
|
||||
`videoLink` TEXT NULL,
|
||||
`next_videos_id` INT NULL,
|
||||
`isSuggested` INT(1) NOT NULL DEFAULT 0,
|
||||
`trailer1` VARCHAR(255) NULL DEFAULT NULL,
|
||||
|
|
13
updatedb/updateDb.v11.8.sql
Normal file
13
updatedb/updateDb.v11.8.sql
Normal file
|
@ -0,0 +1,13 @@
|
|||
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 `videoLink` `videoLink` TEXT NULL DEFAULT NULL ;
|
||||
|
||||
|
||||
UPDATE configurations SET version = '11.8', 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;
|
Loading…
Add table
Add a link
Reference in a new issue