Files
newznab-tmux/resources/db/patches/mysql/0202~user_series.sql
T
2016-09-21 12:34:07 +02:00

23 lines
809 B
SQL
Executable File

# This patch will make the necessary changes to the user_series
# table to support the new videos implementation
# At this time, we're not sure if we can preserve the users shows
# data as the tvrage data is largely useless due to the title insert bug
# Drop the old user_series table
DROP TABLE IF EXISTS userseries;
# Create userseries table with new schema
CREATE TABLE userseries (
id INT(16) UNSIGNED NOT NULL AUTO_INCREMENT,
userid INT(16) NOT NULL,
videos_id INT(16) NOT NULL COMMENT 'FK to videos.id',
categoryid VARCHAR(64) NULL DEFAULT NULL,
createddate DATETIME NOT NULL,
PRIMARY KEY (id),
INDEX ix_userseries_videos_id (userid, videos_id)
)
ENGINE = MYISAM
DEFAULT CHARSET = utf8
COLLATE = utf8_unicode_ci
AUTO_INCREMENT = 1;