MCPcopy Index your code
hub / github.com/TruthHun/BookStack / Delete

Method Delete

models/document_history.go:69–73  ·  view source on GitHub ↗

删除历史.

(historyId, docId int)

Source from the content-addressed store, hash-verified

67
68//删除历史.
69func (m *DocumentHistory) Delete(historyId, docId int) error {
70 o := orm.NewOrm()
71 _, err := o.QueryTable(m.TableNameWithPrefix()).Filter("history_id", historyId).Filter("document_id", docId).Delete()
72 return err
73}
74
75func (m *DocumentHistory) InsertOrUpdate() (history *DocumentHistory, err error) {
76 o := orm.NewOrm()

Callers 3

DeleteByDocumentIdMethod · 0.45
DeleteByHistoryIdMethod · 0.45
DeleteByLimitMethod · 0.45

Calls 1

TableNameWithPrefixMethod · 0.95

Tested by

no test coverage detected