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,7 +1067,7 @@ CREATE TABLE `top_snatchers` (
1067 1067
 
1068 1068
 CREATE TABLE `torrents` (
1069 1069
   `ID` int(10) NOT NULL AUTO_INCREMENT,
1070
-  `GroupID` int(10) NOT NULL,
1070
+  `GroupID` int(10) NOT NULL DEFAULT NULL,
1071 1071
   `UserID` int(10) DEFAULT NULL,
1072 1072
   `Media` varchar(20) DEFAULT NULL,
1073 1073
   `Container` varchar(20) DEFAULT NULL,
@@ -1078,11 +1078,11 @@ CREATE TABLE `torrents` (
1078 1078
   `Language` varchar(20) DEFAULT NULL,
1079 1079
   `Censored` tinyint(1) NOT NULL DEFAULT '1',
1080 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 1083
   `FileList` mediumtext,
1084 1084
   `FilePath` varchar(255) NOT NULL DEFAULT '',
1085
-  `Size` bigint(12) NOT NULL,
1085
+  `Size` bigint(12) NOT NULL DEFAULT NULL,
1086 1086
   `Leechers` int(6) NOT NULL DEFAULT '0',
1087 1087
   `Seeders` int(6) NOT NULL DEFAULT '0',
1088 1088
   `last_action` datetime,

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


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


Loading…
Cancel
Save