From 2186710f4750909c707f7d332f4c1917244440b4 Mon Sep 17 00:00:00 2001 From: alemon0 <74633538+alemon0@users.noreply.github.com> Date: Thu, 7 Dec 2023 16:53:03 +0800 Subject: [PATCH] Update blocks.go table name and column name error. change FileInfo to file_info, DeleteAt to delete_at --- server/services/store/sqlstore/blocks.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/services/store/sqlstore/blocks.go b/server/services/store/sqlstore/blocks.go index c06412c0f..664099747 100644 --- a/server/services/store/sqlstore/blocks.go +++ b/server/services/store/sqlstore/blocks.go @@ -427,8 +427,8 @@ func (s *SQLStore) deleteBlockAndChildren(db sq.BaseRunner, blockID string, modi if fileID != "" { deleteFileInfoQuery := s.getQueryBuilder(db). - Update("FileInfo"). - Set("DeleteAt", model.GetMillis()). + Update("file_info"). + Set("delete_at", model.GetMillis()). Where(sq.Eq{"id": fileID}) if _, err := deleteFileInfoQuery.Exec(); err != nil { return err