1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 09:49:28 +02:00
Oinktube/plugin/YouTubeAPI/install/install.sql
daniel 669b541086 Adding a new plugin YouTubeAPI that allow you to add a new row of videos in the Gallery Layout.
in the future we will add in other layouts as well.

this plugin does not require you to embed or upload videos. they are played directly from youtube
2020-03-18 12:57:17 -03:00

22 lines
No EOL
781 B
SQL

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';
CREATE TABLE IF NOT EXISTS `youTube_uploads` (
`id` INT NOT NULL AUTO_INCREMENT,
`created` DATETIME NULL,
`modified` DATETIME NULL,
`videos_id` INT NOT NULL,
`url` VARCHAR(255) NOT NULL,
PRIMARY KEY (`id`),
INDEX `fk_youTube_uploads_videos_idx` (`videos_id` ASC),
CONSTRAINT `fk_youTube_uploads_videos`
FOREIGN KEY (`videos_id`)
REFERENCES `videos` (`id`)
ON DELETE CASCADE
ON UPDATE CASCADE)
ENGINE = InnoDB;
SET SQL_MODE=@OLD_SQL_MODE;
SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;
SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;