mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 01:39:24 +02:00
18 lines
871 B
SQL
18 lines
871 B
SQL
-- this update we will use the encoderURL to inform where the video was encoded (in case you are using a network)
|
|
-- the filepath, in case we want to store the videos in a subdirectory of videos dir
|
|
-- filesize to start to count how much space the user is consuming.
|
|
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`
|
|
ADD COLUMN `encoderURL` VARCHAR(255) NULL DEFAULT NULL,
|
|
ADD COLUMN `filepath` VARCHAR(255) NULL DEFAULT NULL,
|
|
ADD COLUMN `filesize` BIGINT(19) UNSIGNED NULL DEFAULT 0;
|
|
|
|
|
|
UPDATE configurations SET version = '8.5', 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;
|