mirror of
https://github.com/Li4n0/revsuit.git
synced 2026-09-24 23:51:54 +08:00
fix: fix bug that the files associated with records still exist after deleting mysql and ftp records
This commit is contained in:
+1
-1
@@ -24,7 +24,7 @@ type Record struct {
|
||||
Path string `form:"path" json:"path"`
|
||||
Method Method `form:"method" json:"method"`
|
||||
Status Status `form:"status" json:"status"`
|
||||
File *file.FTPFile `form:"file" json:"file" notice:"-"`
|
||||
File *file.FTPFile `gorm:"foreignKey:RecordID;constraint:OnUpdate:CASCADE,OnDelete:CASCADE;" form:"file" json:"file" notice:"-"`
|
||||
Rule Rule `gorm:"foreignKey:RuleName;references:Name;constraint:OnUpdate:CASCADE,OnDelete:SET NULL;" form:"-" json:"-" notice:"-"`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user