Commit Graph

81 Commits

Author SHA1 Message Date
Carlos Tadeu Panato Junior
6031b163d8 Update MM version/sqlstore to version 6.0.0 (#18247)
Automatic Merge
2021-08-24 16:15:03 +02:00
Ashish Bhate
e50cfca2ea [MM-35345][MM-35494] fixes for incorrect mentions and unreads for threads and channels (#17803)
Summary:
The CRT backend was first released in version 5.29.0. Since then, the behaviour of the CRT feature has been refined, several bugs have been fixed, and a few sql columns have been added. Before these various fixes went in, the threads and channel membership tables have accumulated incorrect mention and unreads data. This PR fixes some of this bad historical data.
Summary of fixes:

- Marks threads as read for users where the last reply time of the thread is earlier than the time the user viewed the channel. Marking a thread means setting the mention count to zero and setting the last viewed at time of the the thread as the last viewed at time of the channel. This is done through a "sql migration"
- Fix channel counts, i.e. the total message count, total root message count, mention count, and mention count in root messages for users who have viewed the channel after the last post in the channel. This is done as a "sql migration"


Ticket Link:
Parts of
https://mattermost.atlassian.net/browse/MM-35494
https://mattermost.atlassian.net/browse/MM-35345
2021-07-14 17:39:40 +05:30
Mattermod
2d8857b72e Update minor version to 5.37.0 (#17841)
Co-authored-by: Mmbot <mmbot@mattermost>
2021-06-28 14:26:44 +02:00
Carlos Tadeu Panato Junior
fff09bf210 db: upgrade db to 5.36 (#17687) 2021-06-02 23:12:02 +02:00
Carlos Tadeu Panato Junior
246e4f9508 upgrade DB for 5.35 (#17488) 2021-04-23 15:28:01 +02:00
Elisabeth Kulzer
5329eac020 Upgrade db and version (#17230) 2021-03-25 15:42:27 +01:00
Amy Blais
ab46ee4b89 Update version.go (#16995)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-03-01 16:23:27 +01:00
Amy Blais
920f1418ef Update version.go (#16779) 2021-01-27 12:14:40 +01:00
Agniva De Sarker
1a131b54af MM-31064: Simplify indentation (#16565)
* MM-31064: Simplify indentation

Reduce indentation where possible.

```release-note
NONE
```

Command ran to verify:
golangci-lint run --disable-all --enable golint --max-issues-per-linter=10000 --max-same-issues=100000 ./... | grep "block ends with a return state"

https://mattermost.atlassian.net/browse/MM-31064

* incorporate review comments

* enable golint for outdent rule

* fix remaining issues

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2020-12-21 18:50:47 +03:00
Ben Schumacher
6d7c5c5bf3 Bump app version to 5.30 (#15612)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2020-10-02 00:28:56 +02:00
Ben Schumacher
316d22c8f1 Bump app version to 5.28 (#15005) 2020-07-20 21:28:26 +02:00
Ben Schumacher
9e91f2ad33 Bump app version to 5.26 (#14649) 2020-05-27 12:07:44 +02:00
Ben Schumacher
8e858d4dc3 Bump app version to 5.24 (#14220) 2020-04-07 15:22:54 +02:00
Ben Schumacher
d496e6a6a6 Bump app version to 5.22 (#13651) 2020-01-21 16:51:21 +01:00
Ben Schumacher
354f20e7f0 Bump app version to 5.20 (#13230) 2019-12-10 13:17:06 +01:00
Jesús Espino
a63684fcb5 Consistent license message for all the go files (#13235)
* Consistent license message for all the go files

* Fixing the last set of unconsistencies with the license headers

* Addressing PR review comments

* Fixing busy.go and busy_test.go license header
2019-11-29 12:59:40 +01:00
Ben Schumacher
4faf8a96b9 Bump app version to 5.18 (#12259) 2019-09-24 16:37:49 +02:00
Ben Schumacher
3323e7a619 [MM-17109] Bump model version to 5.16 (#12172)
* Bump model version to 5.16

* Make db schema version indipended of app version
2019-09-18 18:23:58 +02:00
Carlos Tadeu Panato Junior
0ddc5f4a32 upgrade db to 5.15 (#11918) 2019-09-05 12:50:40 +02:00
Jesús Espino
4acb139870 Enabling the release-5.14 migration and adding the 5.15 and 5.16 skel (#11783) 2019-08-06 11:54:01 +02:00
Carlos Tadeu Panato Junior
059eecc696 upgrade db to 5.13 and prepare upgrade to 5.14 (#11198)
* upgrade db to 5.13 and prepare upgrade to 5.14
2019-06-18 10:51:45 +02:00
Christopher Speller
f39dd28b72 Upgrading schema version to 5.12.0 (#11043) 2019-06-03 14:41:53 -07:00
Carlos Tadeu Panato Junior
9559de26cc update db to 5.11 (#10826) 2019-05-15 16:58:48 +02:00
Carlos Tadeu Panato Junior
3c8975780d upgrade database to 5.10.0 (#10507) 2019-03-26 13:08:25 -04:00
Carlos Tadeu Panato Junior
4646c38295 Dbups (#10297)
* upgrade db to 5.9

* Prepare db upgrade to 5.10
2019-02-19 09:20:37 -05:00
Carlos Tadeu Panato Junior
d4250f50d8 DB upgrades (#10190)
* uncoment db upgrade to 5.8.0

* add preparatory code for db upgrade 5.9.0

* fix versions

* Update store/sqlstore/upgrade.go

Co-Authored-By: cpanato <ctadeu@gmail.com>
2019-01-29 11:14:00 -05:00
Carlos Tadeu Panato Junior
b3ed9a8507 upgrade db to 5.7 (#10019) 2018-12-19 09:25:11 -05:00
Carlos Tadeu Panato Junior
7253b2c59c upgrade db to 5.6.0 (#9880) 2018-11-26 14:05:04 +01:00
Carlos Tadeu Panato Junior
46dd243331 upgrade to 5.5 (#9798)
* upgrade to 5.5

* add 5.6 upgrade db
2018-11-05 21:38:30 +01:00
Carlos Tadeu Panato Junior
e77f9d06f5 Uncomment upgrade for 5.4.0 (#9477) 2018-09-27 16:09:21 +02:00
Carlos Tadeu Panato Junior
d2190527ea Uncomment upgrade for 5.3.0 (#9354)
* Uncomment upgrade for 5.3.0

* add missing version
2018-09-04 15:42:43 +02:00
Carlos Tadeu Panato Junior
fbdf337dcd Uncomment upgrade for 5.2.0 (#9216) 2018-08-06 09:45:36 +02:00
Carlos Tadeu Panato Junior
7c855c30db Uncomment upgrade for 5.1.0 (#9040) 2018-07-03 18:15:15 +02:00
Carlos Tadeu Panato Junior
bfba142e2b Uncomment upgrade for 5.0.0 (#8914) 2018-06-05 20:17:53 +02:00
Derrick Anderson
e555b7454d Uncomment upgrade for 4.10 (#8727)
* uncomment upgrade code

* ping jenkins

* add 4.10.0 to version.go
2018-05-04 17:01:14 -04:00
Derrick Anderson
f9015a37f3 uncomment 4.9 upgrade code (#8582)
* set db to 4.9

* add prepatory code for 4.10

* bug from old example
2018-04-05 11:45:55 -04:00
Jesse Hallam
9c9a9ade12 Remove the index on Channels.DisplayName. (#8530)
As outlined in [this
discussion](https://pre-release.mattermost.com/core/pl/uw5bwmkb6irkbkn6pk9rkzpytr),
this index causes issues with MySQL's query planner, leading to full
table scans in a case where it would have made more sense to leverage a
filesort.
2018-03-28 09:22:55 -07:00
Chris
e8943936c5 general cleanup (#8387) 2018-03-07 12:36:40 -06:00
Joram Wilander
6b3c9a480a Add preparatory upgrade code for 4.9 (#8408) 2018-03-05 14:39:49 -05:00
JoramWilander
291432e254 Add upgrade code from 4.7.0 to 4.7.1 2018-02-16 17:14:22 -05:00
Joram Wilander
323d717a40 Uncomment upgrade code for 4.7 (#8201) 2018-02-05 18:11:31 -05:00
Derrick Anderson
edc4c35f5f Uncomment upgrade for 4.6 (#8045)
* Uncomment upgrade for 4.6

* add 4.6 version
2018-01-05 12:29:40 -05:00
Christopher Speller
39cf3a998d Uncomment upgrae for 4.5 2017-12-08 11:04:23 -08:00
Christopher Speller
fef70d6c9e Uncomment upgrae for 4.4 (#7796) 2017-11-06 16:02:19 -08:00
Chris
da368539e3 4.3 pre-cut (#7569)
* 4.3 pre-cut

* fix
2017-10-04 13:10:16 -07:00
Chris
90da40b54c pre 4.2 cut (#7380) 2017-09-05 19:29:26 -05:00
Saturnino Abril
dcaed2c8e3 uncomment upgrade for 4.1 (#7128) 2017-08-08 08:48:01 -04:00
Saturnino Abril
3d382cfa0e Uncomment upgrade for 4.0 (#6844) 2017-07-06 22:07:27 +08:00
Joram Wilander
4554d511d5 Uncomment upgrade for 3.10 (#6600) 2017-06-06 18:29:47 -04:00
Joram Wilander
52b5c74a0f Uncomment upgrade for 3.9 (#6336)
* Uncomment upgrade for 3.9

* Add 3.9.0 to model/version.go
2017-05-04 19:40:11 -04:00