Add new fields into matter. Remove migrate20To30.

This commit is contained in:
zicla
2020-03-16 01:44:27 +08:00
parent 4611defe36
commit 7ff7907e11
8 changed files with 25 additions and 253 deletions

View File

@ -351,6 +351,7 @@ func (this *MatterService) Upload(request *http.Request, file io.Reader, user *U
Size: fileSize,
Privacy: privacy,
Path: fileRelativePath,
Prop: EMPTY_JSON_MAP,
}
matter = this.matterDao.Create(matter)
@ -685,6 +686,7 @@ func (this *MatterService) copy(request *http.Request, srcMatter *Matter, destDi
Size: srcMatter.Size,
Privacy: srcMatter.Privacy,
Path: destDirMatter.Path + "/" + name,
Prop: EMPTY_JSON_MAP,
}
newMatter = this.matterDao.Create(newMatter)
@ -716,6 +718,7 @@ func (this *MatterService) copy(request *http.Request, srcMatter *Matter, destDi
Size: srcMatter.Size,
Privacy: srcMatter.Privacy,
Path: destDirMatter.Path + "/" + name,
Prop: EMPTY_JSON_MAP,
}
newMatter = this.matterDao.Create(newMatter)