Browse Source

Fix Ocelot query errors in four `torrents` fields

pjc 5 years ago
parent
commit
452b40ad69
3 changed files with 4 additions and 5 deletions
  1. 4
    4
      gazelle.sql
  2. 0
    1
      static/common/symbols/donor.png
  3. BIN
      static/common/symbols/donor.png

+ 4
- 4
gazelle.sql View File

1067
 
1067
 
1068
 CREATE TABLE `torrents` (
1068
 CREATE TABLE `torrents` (
1069
   `ID` int(10) NOT NULL AUTO_INCREMENT,
1069
   `ID` int(10) NOT NULL AUTO_INCREMENT,
1070
-  `GroupID` int(10) NOT NULL,
1070
+  `GroupID` int(10) NOT NULL DEFAULT NULL,
1071
   `UserID` int(10) DEFAULT NULL,
1071
   `UserID` int(10) DEFAULT NULL,
1072
   `Media` varchar(20) DEFAULT NULL,
1072
   `Media` varchar(20) DEFAULT NULL,
1073
   `Container` varchar(20) DEFAULT NULL,
1073
   `Container` varchar(20) DEFAULT NULL,
1078
   `Language` varchar(20) DEFAULT NULL,
1078
   `Language` varchar(20) DEFAULT NULL,
1079
   `Censored` tinyint(1) NOT NULL DEFAULT '1',
1079
   `Censored` tinyint(1) NOT NULL DEFAULT '1',
1080
   `Anonymous` tinyint(1) NOT NULL DEFAULT '0',
1080
   `Anonymous` tinyint(1) NOT NULL DEFAULT '0',
1081
-  `info_hash` blob NOT NULL,
1082
-  `FileCount` int(6) NOT NULL,
1081
+  `info_hash` blob NOT NULL DEFAULT NULL,
1082
+  `FileCount` int(6) NOT NULL DEFAULT NULL,
1083
   `FileList` mediumtext,
1083
   `FileList` mediumtext,
1084
   `FilePath` varchar(255) NOT NULL DEFAULT '',
1084
   `FilePath` varchar(255) NOT NULL DEFAULT '',
1085
-  `Size` bigint(12) NOT NULL,
1085
+  `Size` bigint(12) NOT NULL DEFAULT NULL,
1086
   `Leechers` int(6) NOT NULL DEFAULT '0',
1086
   `Leechers` int(6) NOT NULL DEFAULT '0',
1087
   `Seeders` int(6) NOT NULL DEFAULT '0',
1087
   `Seeders` int(6) NOT NULL DEFAULT '0',
1088
   `last_action` datetime,
1088
   `last_action` datetime,

+ 0
- 1
static/common/symbols/donor.png View File


BIN
static/common/symbols/donor.png View File


Loading…
Cancel
Save