summaryrefslogtreecommitdiffstats
path: root/store/sqlstore/upgrade.go
Commit message (Collapse)AuthorAgeFilesLines
* DeleteAll for KV (#9431)Daniel Schalla2018-10-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Expire K/V Values Regenerate Code pathfix Update Expiry on Update Check for Exit Signal gofmt Rewrote Go Routine Remove tempoarily cleanup loop fix expiretime TEST: Expired Watchdog as GoRoutine Check if Srv is nil Use Scheduler/Worker for Expired Key CleanUp add license fix scheduler job type; DoJob Restructuring Remove unused imports and constants move db migration from 5.4 to 5.5
* Refactored to rename "service terms" to "terms of service" (#9581)Harshil Sharma2018-10-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * #124 renamed identififers from service terms to terms of service * #124 renamed identififers from service terms to terms of service * 124 renamed ServiceTerms model to TermsOfService * 124 Renamed EnableCustomServiceTerms feature flag to EnableCustomTermsOfService * 124 Renamed EnableCustomServiceTerms feature flag to EnableCustomTermsOfService * #124 fixed formatting * #124 fixed formatting * #132 renamed table ServiceTerms to TermsOfService * #124 renamed some missed files from 'service_terms' to 'terms_of_service' * #124 removed fixed TODOs * drop migrate of ServiceTerms table, since backporting * s/ServiceTerms/TermsOfService/ in tests * s/AcceptedServiceTermsId/AcceptedTermsOfServiceId/ Change the model attribute, even though the column name will eventually be removed. * s/accepted_service_terms_id/accepted_terms_of_service_id/ to match redux * s/serviceTerms/termsOfService * rename column too, and add max size constraint * s/EnableCustomServiceTerms/EnableCustomTermsOfService
* Add preparatory upgrade code for 5.5.0 (#9479)Carlos Tadeu Panato Junior2018-09-281-0/+10
|
* Uncomment upgrade for 5.4.0 (#9477)Carlos Tadeu Panato Junior2018-09-271-10/+10
|
* #MM-12130 changes for custom service terms (#9450)Harshil Sharma2018-09-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * #MM-12130 changes for custom service terms * Fixed styling * Added getServiceTerms API * removed unnecessary panic * removed custom service terms text from flat config * reverted user sql store as those changes are no longer needed * added tests * Updated a config key to be more standard * Added copyright info * Loading service terms only if the feature is enabled * Loading service terms only if the feature is enabled * removed unused index * added createservice termns API * made a param to bool instead of string * added createservice termns API * review fixes * fixed styling * Minor refactoring * removed saveConfig and loadConfig magic * added empty service terms text check to createServiceTerms API * refactoed some urls to be terms_of_service instead of service_terms * removed check for support settings * changed URLs in tests * removed unused code * fixed a bug * added service termd id in conif * fixed a test * review fixes * minor fixes * Fixed TestCreateServiceTerms
* MM-11886: materialize channel search (#9349)Jesse Hallam2018-09-131-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | * materialize PublicChannels table Introduce triggers for each supported database that automatically maintain a subset of the Channels table corresponding to only public channels. This improves corresponding queries that no longer need to filter out 99% DM channels. This initial commit modifies the channel store directly for easier code reviewing, but the next wraps an experimental version around it to enable a kill switch in case there are unforeseen performance regressions. This addresses [MM-11886](https://mattermost.atlassian.net/browse/MM-11886) and [MM-11945](https://mattermost.atlassian.net/browse/MM-11945). * extract the experimental public channels materialization Wrap the original channel store with an experimental version that leverages the materialized public channels, but can be disabled to fallback to the original implementation. This addresses MM-11947. * s/ExperimentalPublicChannelsMaterialization/EnablePublicChannelsMaterialization/ * simplify error handling * move experimental config listener until after store is initialized
* Add preparatory upgrade code for 5.4.0 (#9355)Carlos Tadeu Panato Junior2018-09-051-0/+11
| | | | | | * Add preparatory upgrade code for 5.4.0 * add migration from bad merge
* Merge remote-tracking branch 'upstream/release-5.3' into ↵cpanato2018-09-041-6/+4
|\ | | | | | | release-5.3-daily-merge-20180904
| * Uncomment upgrade for 5.3.0 (#9354)Carlos Tadeu Panato Junior2018-09-041-5/+3
| | | | | | | | | | | | * Uncomment upgrade for 5.3.0 * add missing version
* | MM-11703: Update incoming and outgoing webhook description to 500 characters ↵n1aba2018-09-041-1/+2
|/ | | | | | | | | | | | | | | | | | | | (#9265) * MM-11703: Update incoming and outgoing webhook description to 500 characters * MM-11703: Add upgrade code * MM-11703: Remove MAX_DESCRIPTION_LENGTH constants * MM-11703: GOFMT * MM-11703: Move upgrade code to version 5.3 * MM-11703: Comment back upgrade to 5.3.0 * MM-11703: Add API errors back * MM-11703: Copy-Paste
* Add preparatory upgrade code for 5.3.0 (#9224)Carlos Tadeu Panato Junior2018-08-081-0/+10
|
* Uncomment upgrade for 5.2.0 (#9216)Carlos Tadeu Panato Junior2018-08-061-6/+5
|
* added the custom icon and username for the outgoing webhook and its response ↵Pradeep Murugesan2018-07-251-1/+2
| | | | | | | | | | | | (#9141) * 8272 added the username and icon as part of the model and persisted the same * 8272 added the custome icon and name when set to the web hook response * 8272 changed the infinte loop to timeout after 5 seconds * 8272 fixed review comments
* Add preparatory upgrade code for 5.2.0 (#9047)Carlos Tadeu Panato Junior2018-07-101-0/+10
|
* Uncomment upgrade for 5.1.0 (#9040)Carlos Tadeu Panato Junior2018-07-031-5/+3
|
* Add note on 5.0->4.10 downgrade in upgrade.go (#9029)George Goldberg2018-07-021-0/+13
|
* Add Purpose as a searchable field (#8067)Chris Duarte2018-06-261-0/+2
| | | | | | | | | | * Add Purpose as a searchable field * Add New Index and Remove old for Channels * Include Purpose in FullTextSearch Clause * Move removeIndex for Channels into upgrade.go
* Add preparatory upgrade code for 5.1.0 (#8920)Carlos Tadeu Panato Junior2018-06-131-0/+10
|
* Uncomment upgrade for 5.0.0 (#8914)Carlos Tadeu Panato Junior2018-06-051-14/+13
|
* MM-8853: Adding MANAGE_EMOJIS and MANAGE_OTHERS_EMOJIS permissions (#8860)Jesús Espino2018-05-291-0/+4
| | | | | | | | | | | | | | | | * MM-8853: Adding MANAGE_EMOJIS and MANAGE_OTHERS_EMOJIS permissions * MM-8853: Removing unnecesary emoji enterprise feature * Create emojis migration * Adding MANAGE_EMOJIS and MANAGE_OTHERS_EMOJIS always to system admins * Simplifing permissions checks * Revert "Simplifing permissions checks" This reverts commit e2cafc1905fc9e20125dd9a1552d2d0c7340ae59.
* fmt fix.Martin Kraft2018-05-221-1/+1
|
* Merge branch 'master' into advanced-permissions-phase-2Martin Kraft2018-05-221-1/+2
|\
| * MM-10352: Add locking incoming webhooks to a single channel. (#8835)George Goldberg2018-05-221-0/+2
| |
* | Reinstate upgrade code that mysteriously vanished during some merge.George Goldberg2018-05-181-1/+14
|/
* prep code for 5.0 (#8743)Derrick Anderson2018-05-081-0/+9
|
* Uncomment upgrade for 4.10 (#8727)Derrick Anderson2018-05-041-8/+7
| | | | | | | | * uncomment upgrade code * ping jenkins * add 4.10.0 to version.go
* MM-10319: Use normalized email for Saml (migration) (#8711)Jesús Espino2018-05-041-0/+1
|
* Structured logging (#8673)Christopher Speller2018-04-271-12/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Implementing structured logging * Changes to en.json to allow refactor to run. * Fixing global logger * Structured logger initalization. * Add caller. * Do some log redirection. * Auto refactor * Cleaning up l4g reference and removing dependancy. * Removing junk. * Copyright headers. * Fixing tests * Revert "Changes to en.json to allow refactor to run." This reverts commit fd8249e99bcad0231e6ea65cd77c32aae9a54026. * Fixing some auto refactor strangeness and typo. * Making keys more human readable.
* MM-10020: avoid duplicating unique indexes (#8587)Jesse Hallam2018-04-161-1/+5
| | | | | | | | | | | | | | * unit test TestGet(Search)Replica This adds partial, testing-focused support for SQLite, as well as removing some translated log messages that required initializing i18n just for testing. * avoid returning master twice when no replicas are configured * remove duplicate indexes * unit test GetAllConns
* uncomment 4.9 upgrade code (#8582)Derrick Anderson2018-04-051-10/+19
| | | | | | | | * set db to 4.9 * add prepatory code for 4.10 * bug from old example
* Remove the index on Channels.DisplayName. (#8530)Jesse Hallam2018-03-281-2/+21
| | | | | | | 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.
* Merge branch 'master' into advanced-permissions-phase-1Martin Kraft2018-03-231-0/+7
|\
| * Timezone feature (#8185)Chris Duarte2018-03-221-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add supported timezones into config Remove Timezone list creation in favor of timezone from configs Add Timezone field to Users table Clean up format of SupportedTimezones in config * Remove unwanted change * Add test for updating user timezone * Add empty map[string]string if Timezone is null * Add EnableTimezoneSelection config * Revert back to map[string]string for ClientConfig * Refactor SupportedTimezones into timezones.json * Include timezones.json in TestConfigFlag * Add timezone api endpoint * Bump varchar size to 256 and setMaxSize in user_store * Refactor LoadConfig to LoadConfig and LoadTimezoneConfig * Remove unnecessary argument in LoadConfig, mail_test * Add test for timezone endpoint * Add license header * Refactor timezones endpoint to system.go * Add system base route to timezone endpoint * db timezone upgrade in db v4.9 * Avoid saving SupportedTimezones to config.json * Add timezonePath support in config * Remove EnableTimezoneSelection from config * Use return statement without return parameter * Refactor test for SupportedTimezones * Check for supportedTimezone != nil instead of using len * Decouple SupportedTimezones out of Config * Fix failing test * Add LastTeamIconUpdate back in upgrade.go * Write timezone config in config_flag_test * Add code fallback for default timezone support
* | Merge branch 'master' into advanced-permissions-phase-1George Goldberg2018-03-131-3/+11
|\|
| * Moved team icon upgrade code to 4.9 since it didn't make it in for 4.8 (#8410)Joram Wilander2018-03-081-1/+1
| |
| * Add preparatory upgrade code for 4.9 (#8408)Joram Wilander2018-03-051-4/+11
| |
* | Merge branch 'master' into advanced-permissions-phase-1George Goldberg2018-03-021-0/+13
|\|
| * PLT-7567: Integration of Team Icons (#8284)Christian Hoff2018-03-011-0/+2
| | | | | | | | | | | | | | | | | | | | * PLT-7567: Integration of Team Icons * PLT-7567: Read replica workaround, upgrade logic moved, more concrete i18n key * PLT-7567: Read replica workaround, corrections * PLT-7567: upgrade correction
| * merge 4.7.1 to masterSaturnino Abril2018-02-191-0/+12
| |\
| | * Add upgrade code from 4.7.0 to 4.7.1JoramWilander2018-02-161-0/+12
| | |
| | * Merge branch 'release-4.7' into XYZ-110Jonathan Fritz2018-02-131-9/+0
| | |\
| | | * revert master changesDerrick Anderson2018-02-121-9/+0
| | | |
| | * | Removed unused fields from ChannelMemberHistory table, introduced new ↵Jonathan Fritz2018-02-121-0/+2
| | |/ | | | | | | | | | model.ChannelMemberHistoryResult object that includes those fields that are selected from a join on other tables
* | | Merge remote-tracking branch 'origin/master' into advanced-permissions-phase-1Martin Kraft2018-02-141-0/+2
|\| |
| * | XYZ-110: Cherrypicking changes from release-4.7 to master (#8254)Jonathan2018-02-131-0/+2
| |/ | | | | | | | | | | | | | | * Cherry-picking 7b2861de3a09cf00d00b0872cc537d54302c4bfa to master because enterprise/master has code in it that enterprise/release-4.7 does not, and I don't want enterprise/master to break the next time somebody merges enterprise/release-4.7 to enterprise/master * Renamed file to match existing scheme (cherry picked from commit 8c22c5c6c6f835a6e73faf19036bad2a51bb9127)
* / XYZ-78: Add note to upgrade code about advanced permissions migration. (#8267)George Goldberg2018-02-131-0/+4
|/
* Merge branch 'release-4.7'Derrick Anderson2018-02-091-0/+1
|\
| * Increase OAuth2 state parameter limitJoramWilander2018-02-071-0/+1
| |
* | Add prepatory code for 4.8.0 (#8226)Derrick Anderson2018-02-081-0/+9
|/ | | | | | | | * Add prepatory code for 4.8.0 * formatting issue * build bug
* Uncomment upgrade code for 4.7 (#8201)Joram Wilander2018-02-051-4/+4
|