diff options
author | Andrey Nering <andrey.nering@gmail.com> | 2016-12-30 14:44:54 -0200 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2016-12-31 00:44:54 +0800 |
commit | 42904cb98a4b8e7accdac90bc9f06347cb0521f7 (patch) | |
tree | ff7b39817584c93ad9afd2d2136f51f5d4ddb0a0 /models/models.go | |
parent | 37eec6c9b7056e1e05d0067aef86d2e61d67f757 (diff) | |
download | gitea-42904cb98a4b8e7accdac90bc9f06347cb0521f7.tar.gz gitea-42904cb98a4b8e7accdac90bc9f06347cb0521f7.zip |
Notification - Step 1 (#523)
* Notification - Step 1
* Add copyright headers
* Cache issue and repository on notification model
Diffstat (limited to 'models/models.go')
-rw-r--r-- | models/models.go | 44 |
1 files changed, 35 insertions, 9 deletions
diff --git a/models/models.go b/models/models.go index 20812d0ebf..1bebaa602c 100644 --- a/models/models.go +++ b/models/models.go @@ -71,15 +71,41 @@ var ( func init() { tables = append(tables, - new(User), new(PublicKey), new(AccessToken), - new(Repository), new(DeployKey), new(Collaboration), new(Access), new(Upload), - new(Watch), new(Star), new(Follow), new(Action), - new(Issue), new(PullRequest), new(Comment), new(Attachment), new(IssueUser), - new(Label), new(IssueLabel), new(Milestone), - new(Mirror), new(Release), new(LoginSource), new(Webhook), - new(UpdateTask), new(HookTask), - new(Team), new(OrgUser), new(TeamUser), new(TeamRepo), - new(Notice), new(EmailAddress), new(LFSMetaObject)) + new(User), + new(PublicKey), + new(AccessToken), + new(Repository), + new(DeployKey), + new(Collaboration), + new(Access), + new(Upload), + new(Watch), + new(Star), + new(Follow), + new(Action), + new(Issue), + new(PullRequest), + new(Comment), + new(Attachment), + new(Label), + new(IssueLabel), + new(Milestone), + new(Mirror), + new(Release), + new(LoginSource), + new(Webhook), + new(UpdateTask), + new(HookTask), + new(Team), + new(OrgUser), + new(TeamUser), + new(TeamRepo), + new(Notice), + new(EmailAddress), + new(Notification), + new(IssueUser), + new(LFSMetaObject), + ) gonicNames := []string{"SSL", "UID"} for _, name := range gonicNames { |