From a507f21740c7eedc37893330b6b137288e779b74 Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Mon, 13 Jul 2020 17:28:28 +0200 Subject: [PATCH] Backend: Remove unused notes field from file entity Signed-off-by: Michael Mayer --- internal/entity/file.go | 1 - internal/entity/file_fixtures.go | 14 -------------- 2 files changed, 15 deletions(-) diff --git a/internal/entity/file.go b/internal/entity/file.go index 4ea003fa1..4e433d7b4 100644 --- a/internal/entity/file.go +++ b/internal/entity/file.go @@ -47,7 +47,6 @@ type File struct { FileLuminance string `gorm:"type:varbinary(9);" json:"Luminance" yaml:"Luminance,omitempty"` FileDiff uint32 `json:"Diff" yaml:"Diff,omitempty"` FileChroma uint8 `json:"Chroma" yaml:"Chroma,omitempty"` - FileNotes string `gorm:"type:text" json:"Notes" yaml:"Notes,omitempty"` FileError string `gorm:"type:varbinary(512)" json:"Error" yaml:"Error,omitempty"` Share []FileShare `json:"-" yaml:"-"` Sync []FileSync `json:"-" yaml:"-"` diff --git a/internal/entity/file_fixtures.go b/internal/entity/file_fixtures.go index 5a8f0a643..4a0bcb2be 100644 --- a/internal/entity/file_fixtures.go +++ b/internal/entity/file_fixtures.go @@ -33,7 +33,6 @@ var FileFixtures = map[string]File{ FileLuminance: "8836BD496", FileDiff: 968, FileChroma: 25, - FileNotes: "", FileError: "", Share: []FileShare{ FileShareFixtures.Get("FileShare1", 0, 0, ""), @@ -74,7 +73,6 @@ var FileFixtures = map[string]File{ FileLuminance: "444428399", FileDiff: 747, FileChroma: 12, - FileNotes: "File notes for dng", FileError: "", Share: []FileShare{}, Sync: []FileSync{}, @@ -112,7 +110,6 @@ var FileFixtures = map[string]File{ FileLuminance: "", FileDiff: 0, FileChroma: 0, - FileNotes: "File notes for xmp", FileError: "", Share: []FileShare{}, Sync: []FileSync{}, @@ -150,7 +147,6 @@ var FileFixtures = map[string]File{ FileLuminance: "DC42844C8", FileDiff: 986, FileChroma: 32, - FileNotes: "", FileError: "", Share: []FileShare{}, Sync: []FileSync{}, @@ -188,7 +184,6 @@ var FileFixtures = map[string]File{ FileLuminance: "DC42844C8", FileDiff: 800, FileChroma: 4, - FileNotes: "", FileError: "Error", Share: []FileShare{}, Sync: []FileSync{}, @@ -226,7 +221,6 @@ var FileFixtures = map[string]File{ FileLuminance: "DC42844C8", FileDiff: 800, FileChroma: 26, - FileNotes: "", FileError: "", Share: []FileShare{}, Sync: []FileSync{}, @@ -264,7 +258,6 @@ var FileFixtures = map[string]File{ FileLuminance: "DC42844C8", FileDiff: 800, FileChroma: 26, - FileNotes: "", FileError: "", Share: []FileShare{}, Sync: []FileSync{}, @@ -302,7 +295,6 @@ var FileFixtures = map[string]File{ FileLuminance: "DC42844C8", FileDiff: 800, FileChroma: 0, - FileNotes: "", FileError: "", Share: []FileShare{}, Sync: []FileSync{}, @@ -340,7 +332,6 @@ var FileFixtures = map[string]File{ FileLuminance: "DC42844C8", FileDiff: 800, FileChroma: 0, - FileNotes: "", FileError: "", Share: []FileShare{}, Sync: []FileSync{}, @@ -378,7 +369,6 @@ var FileFixtures = map[string]File{ FileLuminance: "DC42844C8", FileDiff: 800, FileChroma: 0, - FileNotes: "", FileError: "Error", Share: []FileShare{}, Sync: []FileSync{}, @@ -416,7 +406,6 @@ var FileFixtures = map[string]File{ FileLuminance: "DC42844C8", FileDiff: 986, FileChroma: 32, - FileNotes: "", FileError: "", Share: []FileShare{}, Sync: []FileSync{}, @@ -454,7 +443,6 @@ var FileFixtures = map[string]File{ FileLuminance: "DC42844C8", FileDiff: 986, FileChroma: 32, - FileNotes: "", FileError: "", Share: []FileShare{}, Sync: []FileSync{}, @@ -492,7 +480,6 @@ var FileFixtures = map[string]File{ FileLuminance: "DC42844C8", FileDiff: 986, FileChroma: 32, - FileNotes: "", FileError: "", Share: []FileShare{}, Sync: []FileSync{}, @@ -530,7 +517,6 @@ var FileFixtures = map[string]File{ FileLuminance: "DC42844C8", FileDiff: 986, FileChroma: 32, - FileNotes: "", FileError: "", Share: []FileShare{}, Sync: []FileSync{},