Remove ishashed and dehashstatus columns

This commit is contained in:
DariusIII
2026-02-11 12:40:10 +01:00
parent 47ce4c69a7
commit cc0d7fca87
12 changed files with 102 additions and 27 deletions
-5
View File
@@ -812,13 +812,11 @@ CREATE TABLE `release_files` (
`releases_id` int(10) unsigned NOT NULL COMMENT 'FK to releases.id',
`name` varchar(255) NOT NULL DEFAULT '',
`size` bigint(20) unsigned NOT NULL DEFAULT 0,
`ishashed` tinyint(1) NOT NULL DEFAULT 0,
`crc32` varchar(255) NOT NULL DEFAULT '',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`passworded` tinyint(1) NOT NULL DEFAULT 0,
PRIMARY KEY (`releases_id`,`name`),
KEY `ix_releasefiles_ishashed` (`ishashed`),
CONSTRAINT `FK_rf_releases` FOREIGN KEY (`releases_id`) REFERENCES `releases` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
DROP TABLE IF EXISTS `release_informs`;
@@ -912,12 +910,10 @@ CREATE TABLE `releases` (
`jpgstatus` tinyint(1) NOT NULL DEFAULT 0,
`videostatus` tinyint(1) NOT NULL DEFAULT 0,
`audiostatus` tinyint(1) NOT NULL DEFAULT 0,
`dehashstatus` tinyint(1) NOT NULL DEFAULT 0,
`reqidstatus` tinyint(1) NOT NULL DEFAULT 0,
`nzbstatus` tinyint(1) NOT NULL DEFAULT 0,
`iscategorized` tinyint(1) NOT NULL DEFAULT 0,
`isrenamed` tinyint(1) NOT NULL DEFAULT 0,
`ishashed` tinyint(1) NOT NULL DEFAULT 0,
`proc_pp` tinyint(1) NOT NULL DEFAULT 0,
`proc_sorter` tinyint(1) NOT NULL DEFAULT 0,
`proc_par2` tinyint(1) NOT NULL DEFAULT 0,
@@ -937,7 +933,6 @@ CREATE TABLE `releases` (
KEY `ix_releases_predb_id_searchname` (`predb_id`,`searchname`),
KEY `ix_releases_haspreview_passwordstatus` (`haspreview`,`passwordstatus`),
KEY `ix_releases_nfostatus` (`nfostatus`,`size`),
KEY `ix_releases_dehashstatus` (`dehashstatus`,`ishashed`),
KEY `ix_releases_name` (`name`),
KEY `ix_releases_guid` (`guid`),
KEY `ix_releases_videos_id` (`videos_id`),
-5
View File
@@ -812,13 +812,11 @@ CREATE TABLE `release_files` (
`releases_id` int(10) unsigned NOT NULL COMMENT 'FK to releases.id',
`name` varchar(255) NOT NULL DEFAULT '',
`size` bigint(20) unsigned NOT NULL DEFAULT 0,
`ishashed` tinyint(1) NOT NULL DEFAULT 0,
`crc32` varchar(255) NOT NULL DEFAULT '',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`passworded` tinyint(1) NOT NULL DEFAULT 0,
PRIMARY KEY (`releases_id`,`name`),
KEY `ix_releasefiles_ishashed` (`ishashed`),
CONSTRAINT `FK_rf_releases` FOREIGN KEY (`releases_id`) REFERENCES `releases` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
DROP TABLE IF EXISTS `release_informs`;
@@ -912,12 +910,10 @@ CREATE TABLE `releases` (
`jpgstatus` tinyint(1) NOT NULL DEFAULT 0,
`videostatus` tinyint(1) NOT NULL DEFAULT 0,
`audiostatus` tinyint(1) NOT NULL DEFAULT 0,
`dehashstatus` tinyint(1) NOT NULL DEFAULT 0,
`reqidstatus` tinyint(1) NOT NULL DEFAULT 0,
`nzbstatus` tinyint(1) NOT NULL DEFAULT 0,
`iscategorized` tinyint(1) NOT NULL DEFAULT 0,
`isrenamed` tinyint(1) NOT NULL DEFAULT 0,
`ishashed` tinyint(1) NOT NULL DEFAULT 0,
`proc_pp` tinyint(1) NOT NULL DEFAULT 0,
`proc_sorter` tinyint(1) NOT NULL DEFAULT 0,
`proc_par2` tinyint(1) NOT NULL DEFAULT 0,
@@ -937,7 +933,6 @@ CREATE TABLE `releases` (
KEY `ix_releases_predb_id_searchname` (`predb_id`,`searchname`),
KEY `ix_releases_haspreview_passwordstatus` (`haspreview`,`passwordstatus`),
KEY `ix_releases_nfostatus` (`nfostatus`,`size`),
KEY `ix_releases_dehashstatus` (`dehashstatus`,`ishashed`),
KEY `ix_releases_name` (`name`),
KEY `ix_releases_guid` (`guid`),
KEY `ix_releases_videos_id` (`videos_id`),