summaryrefslogtreecommitdiffstats
path: root/models/models.go
diff options
context:
space:
mode:
authorAntoine GIRARD <sapk@users.noreply.github.com>2017-11-28 21:58:37 +0100
committerLauris BH <lauris@nix.lv>2017-11-28 22:58:37 +0200
commitd99f4ab0035631aacc44739af0a936e59daf83b7 (patch)
tree607cde54661ad07cb15f1ee5f4d9e836de6ff034 /models/models.go
parent6ad4990a65462af770e15330da4777ea59bcc5ad (diff)
downloadgitea-d99f4ab0035631aacc44739af0a936e59daf83b7.tar.gz
gitea-d99f4ab0035631aacc44739af0a936e59daf83b7.zip
Git LFS lock api (#2938)
* Implement routes * move to api/sdk and create model * Implement add + list * List return 200 empty list no 404 * Add verify lfs lock api * Add delete and start implementing auth control * Revert to code.gitea.io/sdk/gitea vendor * Apply needed check for all lfs locks route * Add simple tests * fix lint * Improve tests * Add delete test + fix * Add lfs ascii header * Various fixes from review + remove useless code + add more corner case testing * Remove repo link since only id is needed. Save a little of memory and cpu time. * Improve tests * Use TEXT column format for path + test * fix mispell * Use NewRequestWithJSON for POST tests * Clean path * Improve DB format * Revert uniquess repoid+path * (Re)-setup uniqueness + max path length * Fixed TEXT in place of VARCHAR * Settle back to maximum VARCHAR(3072) * Let place for repoid in key * Let place for repoid in key * Let place for repoid in key * Revert back
Diffstat (limited to 'models/models.go')
-rw-r--r--models/models.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/models/models.go b/models/models.go
index 836a14db5a..8a3850b6ff 100644
--- a/models/models.go
+++ b/models/models.go
@@ -117,6 +117,7 @@ func init() {
new(TrackedTime),
new(DeletedBranch),
new(RepoIndexerStatus),
+ new(LFSLock),
)
gonicNames := []string{"SSL", "UID"}